A full-stack application with Flask backend and React frontend.
auto-udemy/
├── backend/ # Flask API server
│ ├── app.py # Main application file
│ ├── requirements.txt
│ └── .env.example
└── frontend/ # React + Vite application
├── src/
├── package.json
└── vite.config.ts
- Python 3.8 or higher
- Node.js 16 or higher
- pnpm (or npm/yarn)
cd backendWindows:
python -m venv .venv
.venv\Scripts\activateLinux/Mac:
python -m venv .venv
source .venv/bin/activatepip install -r requirements.txt# Copy the example environment file
cp .env.example .env
# Edit .env with your configuration
# Update SECRET_KEY, PORT, etc.python app.pyThe backend server will start at http://localhost:5000
cd frontendpnpm installpnpm devThe frontend will start at http://localhost:5173 (default Vite port)
pnpm buildTerminal 1 - Backend:
cd backend
source .venv/Scripts/activate # Windows
python app.pyTerminal 2 - Frontend:
cd frontend
pnpm dev# Start backend in background
cd backend && source .venv/bin/activate && python app.py &
# Start frontend
cd frontend && pnpm dev- GET
/api/health- Check if the API is running
- GET
/api/example- Get example data - POST
/api/example- Post example data
- Backend runs on port
5000(configurable via.env) - Frontend runs on port
5173(default Vite) - CORS is enabled for frontend-backend communication
Backend:
- Flask 3.0.0
- Flask-CORS
- Python-dotenv
Frontend:
- React
- TypeScript
- Vite
- ESLint