Git Product home page Git Product logo

sabuhibrahim / flask-rest-api-jwt-auth-todo-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 21 KB

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.

Dockerfile 0.52% Python 97.68% Mako 1.58% Shell 0.22%
flask flask-application flask-docker flask-jwt flask-restful flask-todo flask-todolist todolist python

flask-rest-api-jwt-auth-todo-app's Introduction

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 

flask-rest-api-jwt-auth-todo-app's People

Contributors

sabuhibrahim avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.