Skip to content

Marco-03/task-manager-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—‚οΈ Task Manager API

A secure and modern REST API for managing personal tasks, built with Flask, JWT, and SQLAlchemy. Designed as a full-stack project for learning, testing, and extending.


πŸ”§ Features

  • βœ… User registration and authentication (/signup, /login)
  • βœ… JWT-protected routes
  • βœ… Full CRUD for tasks (Create, Read, Update, Delete)
  • βœ… Task ownership per user
  • βœ… Clean code structure (models, routes, extensions)
  • βœ… Ready for frontend integration (React)

πŸ“ Project Structure

backend/
β”œβ”€β”€ app.py # App entrypoint
β”œβ”€β”€ extensions.py # DB & JWT init
β”œβ”€β”€ models.py # SQLAlchemy models
β”œβ”€β”€ routes.py # Auth + task routes
β”œβ”€β”€ requirements.txt # Dependencies
β”œβ”€β”€ .gitignore # Excludes venv, db, etc.

πŸ§ͺ API Endpoints

πŸ” Auth

Method Endpoint Description
POST /signup Create user
POST /login Get JWT token

βœ… Tasks (JWT Protected)

Method Endpoint Description
GET /tasks List user tasks
GET /tasks/<id> Get single task
POST /tasks Create task
PUT /tasks/<id> Update task
DELETE /tasks/<id> Delete task

➑️ Use Authorization: Bearer <token> header for protected routes.


▢️ Getting Started

  1. Clone the repo
  2. Create virtualenv:
    python -m venv venv
    source venv/bin/activate  # on Windows: venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
    
    
  4. Run the app:
    python app.py
    
    

βš™οΈ Tech Stack

Backend: Flask, SQLAlchemy, JWT, SQLite

Security: Password hashing, route protection

Testing: Postman

πŸ‘¨β€πŸ’» Author

Marco-Antonio Luchian
LinkedIn https://www.linkedin.com/in/marco-luchian-46293a244/

About

Task manager backend API with Flask, JWT, SQLAlchemy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages