Full-stack app with React + FastAPI + MongoDB.
cd backend
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # edit as needed
uvicorn app.main:app --reload
# Seed sample data:
python seed.pycd frontend
npm install
npm run devFrontend runs on http://localhost:5173 — Vite proxies /api → http://localhost:8000.
| Method | Path | Description |
|---|---|---|
| GET | / |
Version info |
| GET | /health |
Health check |
| GET | /employees |
List all (supports ?name=&department=) |
| POST | /employees |
Create employee |
| GET | /employees/{id} |
Get by ID |
| PUT | /employees/{id} |
Partial update |
| DELETE | /employees/{id} |
Delete |
| Secret | Description |
|---|---|
EC2_HOST |
EC2 public IP or hostname |
EC2_USER |
SSH username (e.g. ubuntu) |
EC2_SSH_KEY |
Private SSH key for EC2 access |