JeffersonCarvalh0 / todo-django-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todo

A django restful API that performs CRUD operations on Todos with authentication.

Building

Using docker-compose

Simply run docker-compose up or docker-compose up -d from root and wait until it starts. If it is the first time you are running it, make the migrations by running docker-compose exec web python todo/manage.py migrate while the container is up.

Building it manually

pipenv must be installed. Run pipenv install from root to install all dependencies. If you get errors while building psycopg, following this might help.

Running

If you did a manual build, run pipenv shell and python todo/manage.py runserver from root to start the server. If you are running it through docker, the server should already be running. Open localhost:8000 in the browser to see the swagger ui, where the endpoints can be tested(in order to use the jwt token for authorization, write Bearer <token> instead of just ` in the authorization pop up)

About


Languages

Language:Python 99.2%Language:Dockerfile 0.8%