8000 GitHub - kgolezardi/Performance-Review-Backend
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kgolezardi/Performance-Review-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance Review

Development

  • Install pyenv
  • Install python 3.6.9 pyenv install 3.6.9
  • Create python virtual environment named pr pyenv virtualenv 3.6.9 pr
  • Install poetry
  • Install dependencies poetry install
  • Create .env based on the given sample.env in root and in docker/development
  • Run docker compose file at docker/development to create PostgreSQL container docker-compose up -d
  • Each time you change the schema of the GraphQL API, you should run python manage.py graphql_schema --out schema.graphql

Deployment

Prepare

Create .env based on the given sample.env in root and in docker/development.

Run

cd docker/production/
docker-compose up -d

Migrations

cd docker/production/
docker-compose run api python manage.py migrate

Create superuser

cd docker/production/
docker-compose run api python manage.py createsuperuser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0