Skip to content

yabesh12/task-manager-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Task Manager

Objective

Backend application implemented using Django and Django Rest Framework, with MongoDB as the database(from MongoDb Atlas Cluster). User authentication and authorization are also implemented.

Functionalities

  • User signup with username, email, and password.
  • User login with username and password.
  • User logout with token expiration.
  • CRUD operations for tasks (Create, Read, Update, Delete).
  • Each task has a title, description, due date, and status.
  • Users can only access their own tasks.
  • MongoDB integration for task storage.

Endpoints

User Signup

  • Endpoint: /api/signup/
  • Method: POST
  • Parameters: username, email, password
  • Authorization: AllowAny

User Login

  • Endpoint: /api/login/
  • Method: POST
  • Parameters: username, password
  • Authorization: AllowAny

User Logout

  • Endpoint: /api/logout/
  • Method: POST
  • Authorization: IsAuthenticated

Task CRUD

  • Endpoint: /api/tasks/
  • Methods: GET, POST
  • Parameters (POST): title, description, due_date, status
  • Authorization: IsAuthenticated

Status Choices

  • Endpoint: /api/status-choices/
  • Method: GET
  • Authorization: AllowAny

Instructions to Run

  1. Clone the repository:
    git clone https://github.com/yabesh12/task-manager-backend.git
    
  2. Create Python Virtualenvironment
    python -m venv venv
    
  3. Activate python virtualenvironment:
    source venv/bin/activate
    
  4. Install packages and dependencies:
    pip install -r requirements.txt
    
  5. Apply the Migrations:
    python manage.py migrate
    
  6. Create a Superuser (optional):
    python manage.py createsuperuser
    
  7. Start the development server:
    python manage.py runserver
    
    

Note

default super-admin user:-

username - yabesh

password - yabesh

About

Task manager backend using Django, mongodb, django-rest-framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages