Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 700 Bytes

File metadata and controls

39 lines (30 loc) · 700 Bytes

UserService

Microservice responsible for authentication and authorization aspects.

Build Image

sudo docker build -t my-postgres-db ./ ;

Run Image

sudo docker run --env-file .env -d --name my-postgresdb-container -p 5432:5432 my-postgres-db ;

PSQL (Postgres Command Line Interface)

sudo docker exec -it container_number /bin/bash ;
psql -d user_db -U propertease ;

Pre-requirements

sudo apt-get install libpq-dev python-dev

Setup venv

python -m venv venv;
source venv/bin/activate;
pip install -r requirements;

Run FastAPI

source venv/bin/activate;
uvicorn UserService.main:app --reload;