morshedmasud / flask-rest-api-boilerplate

Simple User CRUD Boilerplate with Flask, Restplus and Swagger Documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Rest API Boilerplate

Technology used

  • Python3.8
  • Flask
  • Flask-restplus
  • Sqlite

Features

  • JWT Authentication
  • Swagger Documentation
  • User CRUD
  • Unittest

Setup in your local machine

  1. Clone project
git clone https://github.com/morshedmasud/flask-rest-api-boilerplate
  1. Create virtualenv
virtualenv -p python3 venv
  1. Active virtualenv
. venv/bin/activate
  1. Go to project root path and install all dependency
make install
  1. Database migrations
python manage.py db init
python manage.py db migrate --message 'initial database migration'
  1. Database Update
python manage.py db upgrade
  1. Run Application
make run
  1. To Tests
make tests

Open the following url for view swagger documentation

http://127.0.0.1:5000/

About

Simple User CRUD Boilerplate with Flask, Restplus and Swagger Documentation


Languages

Language:Python 96.5%Language:Mako 1.9%Language:Makefile 1.5%