Skip to content

felixkorch/DelayMeasurements

Repository files navigation

Build instructions

  1. 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
  1. To set-up a dev environment using docker-compose, run:
docker-compose up -d
  1. 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.

Building the web-server separately

Backend:

  1. 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
  1. Export two variables in current terminal so the backend can connect to the DB.
export ENV_USER=defaultUser
export ENV_PASS=defaultPass
  1. Run this to install dependencies
pip install -r requirements.txt
  1. Start the server:
flask run

Frontend:

  1. Install yarn if you haven't
  2. Run this from ./frontend to install dependencies:
yarn install
  1. Start the server
yarn start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published