Based on a Glitch.com experiment.
- If missing, install Python 3 directly or via PyEnv. Make sure you have
venv
andpip3
available. - If missing, install node.js.
- Run
python3 -m venv ./.venv
(set up a local virtual environment of Python). - Run
source ./.venv/bin/activate
(enable the local virtual environment of Python). - Run
pip install -r ./requirements.txt
to set up initial Python dependencies - Run
npm install
to set up initial JavaScript dependencies. - Run
npm run build
and thennpm run serve
to test the server. - For development with live reloading, run (from two different terminals):
npm start
- to run frontend server using Vitenpm run server
- to run backend server
- When developing with the Vite dev server (
npm start
), make sure to add new backend routes to the vite.config.js proxy configuration.