Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

OcadaHQ/ocada-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development

Set environment to dev to run db locally:

export ENVIRONMENT=dev

Start the database:

docker-compose up database

Alternatively prod db could be used (for testing only):

export ENVIRONMENT=prod
also export APP_DB_NAME, APP_DB_USER, APP_DB_PORT, APP_DB_PASSWORD and APP_DB_HOST

Start the API for local development:

uvicorn app.api.main:app --reload --host 0.0.0.0

Tear down the database and all containers (useful for changes to the DB models):

docker-compose down

Production

Start up production

docker-compose up

It will launch the database and the backend API.

Redeploy production:

sudo docker-compose up --detach --build api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages