Skip to content

Bennnto/Do_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Do Api

Do API is a Task/To do API that create to be a simple RESTful backend for managing to‑do tasks, built with FastAPI and SQLAlchemy.
Users can register, log in, and then securely create and manage their own tasks via JWT-based authentication.

Features

  • User registration with unique username and email
  • Secure password hashing using Argon2 (via passlib)
  • JWT authentication with bearer tokens
  • Per‑user task ownership (each task belongs to a specific user)
  • CRUD-style task endpoints (create and read implemented, update/delete scaffolded)
  • Task fields: title, description, completed, due date, priority
  • SQLite database via SQLAlchemy ORM
  • CORS enabled for frontend integration
  • Static file mounting for serving a simple frontend

Tech Stack

  • Backend: FastAPI
  • Database: SQLite (SQLAlchemy ORM)
  • Auth: JWT (python-jose), Argon2 (passlib)
  • Server: Uvicorn (recommended)

Usage and Installation

  • Clone the repository and move into the project folder.

  • Create and activate a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate      # macOS / Linux
  • Install dependencies from requirements.txt

    pip install -r requirements.txt
    
  • Set environment variable

    export SECRET_KEY="your-strong-secret-key"
    
  • Run Application

    uvicorn main:app reload
    

    or

    pip install "fastapi[standard]"
    fastapi dev
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors