Skip to content

This repo allows us star a project with django-rest-framework, docker and postgress.

License

Notifications You must be signed in to change notification settings

fmgarciaa/DRF-codebase

Repository files navigation

DRF-CODEBASE


This is a code base for projects with Django Rest Framework (DRF) and Docker. It is a simple setup to get started with your projects with these two technologies.

Features

  • It has environment variables (.env)
  • The configuration (config.settings) of django is separated into base, local and production.
  • Docker is configured with postgres

Installation

It is easy to install the only requirement is to have docker installed on your machine and create an .env file with the data from the .env_template file.

After creating the .env file run the following commands

The first one is:

  • This command create the container with requeriments.txt and database (postgress).
    docker-compose build

Second is:

  • This command run the database and server (port:8000)
    docker-compose up

About

This repo allows us star a project with django-rest-framework, docker and postgress.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published