Skip to content

vicabitu/basic-django-api-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Django with PostgreSQL using Docker

A basic example of implementation of a api with Django using the Django Rest Framework library and Json web Token.

Steps

Step 1: Clone repository:
$ git clone https://github.com/vicabitu/basic-django-api-rest.git
$ cd basic-django-api-rest
Step 2: Build the image:
$ docker-compose build
Step 3: Once the image is built, run the containers:
docker-compose up
Step 4: Run the migrations:
docker-compose exec web python manage.py migrate --noinput

How to

Create super user:
docker-compose exec web python manage.py createsuperuser
Stop containers:
docker-compose stop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published