Skip to content

diogoduartec/django-rest-framework-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Rest Framework + PostgreSQL

In this projects I built some features related to restaurants recipes.

Dependencies

Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. It's like a pip + venv, all together.

Environment variables

Add a .env file with the following variables:

POSTGRES_DB=<database name>
POSTGRES_USER=<database user>
POSTGRES_PASSWORD=<database password>

How to run using manage.py

Activate virtual environment

poetry shell

Install dependencies

poetry install

Up database

docker-compose up db -d

Run application

python manage.py

How to run in docker

Run application

docker-compose up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published