We use conda for python version and virtual environment. On top of that, for dependency management, we use poetry.
Ensure you have conda and poetry installed.
- Clone the repository and cd into this directory
cd backend
- Create the conda environment
conda env create -f environment.yaml
- Whenever working on the project, activate the environment
conda activate tc
- To install all dependencies, use poetry
poetry install
- Whenever adding a new dependency, instead of pip install, use poetry add:
poetry add <package>
- Whenever updating to the latest dependencies, use poetry update:
poetry update
Finally, we also need to setup the .env
file. Find the .env.example
file and copy it to .env
. Then, fill in the values for the environment variables. You can go to our discord under PROTOTYPE > #important
to find the values for the environment variables.
Running in locally in your browser:
poetry run server
Running it exposed to your local network:
poetry run expose
This will open a QR code you can scan with your phone to use the app.