Skip to content

a todo app made created with django, rest_framework, postgresql

Notifications You must be signed in to change notification settings

dapt4/django-drf-postgres-todoapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-drf-postgres-todoapp

first create your virtualenv

$ python3 -m venv venv

activate venv

$ source venv/bin/activate

then install requeriments

$ pip install -r requirements.txt

install postgresql, login and create the database

CREATE DATABASE <yourDBname>;

create a .env file in the root folder

$ touch .env

and add your postgresql credentials and the app SECRET_KEY to .env file

ENV_SECRET_KEY="{add a secret key like bhajfbkjhawbdkjhabdjh}"
ENV_NAME='{yourDBname}'
ENV_HOST='{your host or localhost}'
ENV_PORT='{your db port or 5432}'
ENV_USER='{your db user}'
ENV_PASSWORD='{your db password}' run the command: python manage.py migrate finally the project run with:

$ python manage.py runserver

open your browser in:

localhost:8000/
POST localhost:8000/login
POST localhost:8000/register
GET PUT DELETE localhost:8000/todo/<int:id>
GET localhost:8000/todo/done/<int:id>

About

a todo app made created with django, rest_framework, postgresql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages