Skip to content

This is a To-do RestAPI example Flask application with JWT authentication. It uses a PostgreSQL connection with SqlAlchemy ORM. There is an alembic config also.

Notifications You must be signed in to change notification settings

sabuhibrahim/flask-rest-api-jwt-auth-todo-app

Repository files navigation

Flask Todo App with JWT Authentication example

This project includes authentication APIs (login, register), tasklist APIs (list, create, order update, delete), task APIs (list, create, update order, task detail, task update, task delete), also steps APIs (add step, update step and delete step). It uses a PostgreSQL connection with SqlAlchemy ORM. There is an alembic config also.

Installation

  • If you want to run docker you need to install docker
  • Configure your postgresql
  • Create .env from .env.example
cp .env.example .env
  • Add Postgresql config to .env
  • Run docker
docker-compose up -d --build

or

docker compose up -d --build

if you want to run this app without docker

  • Add Postgresql config to alembic/env.py
  • Use the package manager pip to install requirements.txt.
pip install -r requirements.txt
  • Run app with start.sh. It will do migrate migrations then run app
chmod 755 start.sh
sh start.sh
  • Or you can run manual on development mode
python -m flask --app todo_app run 

About

This is a To-do RestAPI example Flask application with JWT authentication. It uses a PostgreSQL connection with SqlAlchemy ORM. There is an alembic config also.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages