- Make sure that either Miniconda or Miniforge is installed
- Make sure that Yarn is installed
- Clone the repository
- Install front-end dependencies
cd frontend
yarn
- Create Conda Environment
cd ../backend
conda env create -f environment.yml
conda activate server-project
- IDE Setup
- Restart VSCode
- Open
backend/app.py - Click the python interpreter in the bottom left
- Select
Python 3.8.10 64-bit ('server-project': conda)
- Add Mongo URI
- Create a file called
.envinbackend - Add
MONGO_URI=[Connection String]
- Add API URL
- Create a file called
.envinfrontend - Add
REACT_APP_API_URL="http://localhost:5000/"to the file
- Run Project
cd frontend
conda activate server-project
yarn run dev
Note: You do not need to run conda activate server-project if the terminal shows (server-project)
- Deactivate the conda environment
conda deactivate
- In
backend/environment.yml, add the package to thedependencieslist - In
backend/Dockerfile, add the package to end ofRUN python -m pip install gunicorn flask [new package] - Update the conda environment
conda env update --file environment.yml
- Restart VSCode
- Activate the conda environment
conda activate server-project
cd frontend
yarn add [new package]