A full-stack voting application built with FastAPI and React.
.
├── src/
│ ├── back/ # FastAPI backend
│ └── front/ # React frontend
├── docker/ # Docker configuration
└── Makefile # Build and development commands
- Python 3.x
- Node.js and Yarn
- Docker (optional, for containerized deployment)
-
Create and activate the virtual environment:
make venv
-
Install dependencies:
make install
-
Start the development servers:
# Start backend make back # Start frontend (in a separate terminal) make front
make venv- Create virtual environmentmake install- Install dependenciesmake back- Start FastAPI server with reloadmake front- Start React development servermake format- Format code with blackmake reset-db- Delete and recreate the SQLite DBmake build-front- Build the frontendmake run-app- Build frontend and run backendmake docker-build- Build Docker image
For containerized deployment, see the Docker README.