# Check Python version (need 3.8+)
python --version
# Check Node version (need 18+)
node --version
### 2. Backend Setup (3 minutes)
```bash
# Create folder and copy files
mkdir backend
cd backend
# Copy: main.py, .env, requirements.txt to this folder
# Edit .env - add your postgres password
# DB_PASSWORD=your_password_here
# Install dependencies
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Run backend
python main.py
# Keep this terminal open!# Open NEW terminal
npx create-next-app@latest edusense-frontend
# Choose: TypeScript=Yes, Tailwind=Yes, App Router=Yes
cd frontend
# Replace app/page.tsx with provided page.tsx file
# Run frontend
npm run devGo to: http://localhost:3000
You should see 8 students listed!
"CORS error in browser" → Make sure backend is running on port 8000
"Module not found"
→ Run pip install -r requirements.txt again
# Terminal 1 - Backend
cd backend
source venv/bin/activate # Windows: venv\Scripts\activate
python main.py
# Terminal 2 - Frontend
cd frontend
npm run dev- Press Ctrl+C in both terminals
Backend:
backend/main.py- All API codebackend/.env- Database password
Frontend:
frontend/app/page.tsx- Main page
Database:
- Database name:
edusense_db - Table:
students
Browser:
- Health: http://localhost:8000
- Students: http://localhost:8000/api/students
Command line:
curl http://localhost:8000/api/students