- Create a .env file in the root directory of the project and add a few variables:
DB_USER=defaultUser
DB_PASS=defaultPass
DB_TO_USE=delay
DB_HOST=delay-db
STAGE=dev
- To set-up a dev environment using docker-compose, run:
docker-compose up -d
- To build reqserver run this command in the tool-container:
./build_server.sh
Note: This will mirror your local folders into the container, so changes will automatically be applied.
- Create a new virtual environment and activate it
Windows:
python -m venv env && source env/Scripts/activate
Mac/Linux
python -m venv env && source env/bin/activate
- Export two variables in current terminal so the backend can connect to the DB.
export ENV_USER=defaultUser
export ENV_PASS=defaultPass
- Run this to install dependencies
pip install -r requirements.txt
- Start the server:
flask run
- Install yarn if you haven't
- Run this from ./frontend to install dependencies:
yarn install
- Start the server
yarn start