- Install PSQL : https://www.timescale.com/blog/how-to-install-psql-on-mac-ubuntu-debian-windows/
- Install the latest PgAdmin : https://www.pgadmin.org/docs/pgadmin4/development/pgagent_install.html
-
Uncomment the
db_uri
variable that is set for running with docker. Set the hostname to your IP address if 'db' doesn't work. -
Make sure you have Docker desktop and WSL installed.
-
Run the docker containers using :
docker-compose up --build
orsudo docker-compose up --build
-
Open the
endpoints.http
file and run each of the endpoints. You should get a 200 Response Code for each of the health endpoints.
-
Uncomment the
db_uri
variable that is set for running without docker. -
Use the
environment.yml
file to create a conda environment with the required packages for this project:conda env create --name envname --file=environments.yml
-
Run this command to start the backend server:
flask --app backend run -p 6400
-
Check that the service endpoints are running successfully on your local machine. These are the steps to follow if you use VSCode (you can check the endpoints using CURL or Postman as well):
-
Ensure that the flask app is still running and open a new terminal.
-
Go to the Extensions tab in VSCode and install "Rest Client" by Huachao Mao.
-
Open the
endpoints.http
file and run each of the endpoints. You should get a 200 Response Code for each of the health endpoints.
-