This project consists of a backend server and a frontend web application.
-
Navigate to the server directory:
cd server -
Please follow the instructions in the server README to set up and start the backend.
The backend provides a API and handles all database operations. You can run it using Docker Compose (recommended) or a local Python environment.
-
Navigate to the web directory:
cd web -
Install dependencies:
pnpm install
-
Start the development server:
pnpm start
server/- Backend API server (Python/Flask + MySQL)web/- Frontend web application (React + TanStack Router)
- Start the backend (in one terminal):
cd server docker-compose up
The production dataset should be automatically loaded to the database when running docker-compose up.
- Start the frontend (in another terminal):
cd web pnpm install pnpm start
The backend API will run on http://localhost:3000 and the frontend will run on its own port (typically http://localhost:5173).
With the database container running, change the dir to server and enter venv:
cd server
python -m venv venv
source venv/bin/activateThen run manage script with init argument:
python -m src.manage initMake sure when running this command, there is no table/view in the database. If there is any table you might need to drop them.