First download it to your local machine
$ git clone https://github.com/prashant-mahanta/TodoApp.git
$ cd TodoApp
activate virtual environment
$ source ./env/bin/activate
If you already have PostgreSQL (else visit here ) Create PostgreSQL Database for the project:
$ sudo su - postgres
$ psql
Create a database and user
$ CREATE DATABASE todo;
$ CREATE USER todouser WITH PASSWORD 'pass';
All we need to do is give our database user access rights to the database we created:
$ GRANT ALL PRIVILEGES ON DATABASE todo TO todouser;
$ \q
$ exit
$ cd todoapp
$ python3 manage.py runserver
Rest API to add, delete and update the TODO List.
url(r'^api-auth/$', TodoAppView.as_view(), name="TodoAppView")
If we visit the https://localhost:8000/api-auth/