A simple Todo application built with FastAPI.
-
JWT Authentication: Implements JWT (JSON Web Tokens) authentication for secure user authentication and authorization.
-
Task Management with Categories: Allows users to create tasks organized by categories for better organization and management.
-
CRUD Operations: Enables users to perform Create, Read, Update, and Delete operations on tasks and categories.
- Python 3.10+
- Poetry
-
Clone this repository:
git clone https://github.com/witelokk/todo.git
-
Navigate to the project directory:
cd todo
-
Set up the environment variables:
POSTGRES_USERNAME
,POSTGRES_PASSWORD
,POSTGRES_HOST
,POSTGRES_PORT
,SECRET_KEY
-
Run the app:
poetry run todo
POST /auth/
: Create UserPOST /auth/token
: Get TokenGET /tasks/
: Get TasksPOST /tasks/
: Add TaskGET /tasks/{task_id}
: Get TaskPATCH /tasks/{task_id}
: Edit TaskDELETE /tasks/{task_id}
: Delete TaskGET /tasks/category/{category_id}
: Get Tasks By CategoryGET /categories
: Get CategoriesPOST /categories
: Add CategoryGET /categories/{category_id}
: Get CategoryPATCH /categories/{category_id}
: Edit CategoryDELETE /categories/{category_id}
: Delete Category
You can get more information about these endpoints using docs at /docs.