$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ cd frontend/
$ npm install
Virtual environment must be activated before starting Flask server (Step 2).
- In a new terminal:
$ docker-compose up mongodb
- In a new terminal, with venv activated:
$ flask --app cozycanvas --debug run --host 0.0.0.0 --port 8000
- In a new terminal, from the
frontend/
directory:$ npm start:frontend
- Navigate to 127.0.0.1:3000/
Alternatively, from the frontend/
directory, you may run $ npm start
to start all three processes concurrently. Virtual environment must be activated beforehand. All terminal output will be in a single terminal. Output from different processes can be distinguished by their [#]
prefix.
- If you update
docker-compose.yaml
orDockerfile
, make sure you build again by runningdocker-compose build