Skip to content

CorrelAid/fds_dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Setup

Working on API

  1. Start the database containers(Redis and Postgres).
(docker compose -f db.yml down --volumes)
docker compose -f db.yml build --no-cache
docker compose -f db.yml  up --force-recreate -d
  1. Install dependencies
poetry install --all-extras
  1. Install Pre commit hook
poetry run pre-commit install
  1. Go to api/api folder. Create the file .env:
POSTGRES_URL='postgresql://dagster:dagster@localhost:5435/main'
REDIS_ADR='localhost'
REDIS_PORT=6379
REDIS_EXPIRE=5

  1. Run the project (while in api/api folder):
poetry run uvicorn main:app --reload

Working on frontend

  1. Run the api.yml docker compose file that will start the databases and the api
docker compose -f api.yml down --volumes
docker compose -f api.yml build --no-cache
docker compose -f api.yml  up --force-recreate -d
  1. Go to frontend folder. If you havent already, install packages. You need node for this to work: https://nodejs.org/en/download/
npm install
  1. Run the project (while in frontend folder):
npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •