jod35 / Build-And-Deploy-A-REST-API-With-Flask

This is a repository for a playlist of videos where I teach building RESTful API with Flask and Flask extensions.

Home Page:https://www.youtube.com/playlist?list=PLEt8Tae2spYnFMndU9EM082imnnzke07J

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build And Deploy A REST API with Flask

This is code for a series of videos in which we look at the various concepts involved when building a REST API with Flask. We also look at the various extensions involved while building Flask applications.

Topics

  • [How to set up a Flask API with Flask-RESTX]
  • Databases with Flask-SQLAlchemy
  • JWT Authentication with Flask-JWT-Extended
  • Environment variables with Python-Decouple
  • Database migrations with Flask-Migrate
  • How to write Unit Tests with Unittest and PyTest
  • Documenting REST APIs with SwaggerUI and Flask-RESTX
  • Error Handling with Werkzeug

How to run the project

Clone the project Repository

git clone https://github.com/jod35/Buildndeploy-A-REST-API-With-Flask.git

Enter the project folder and create a virtual environment

$ cd https://github.com/jod35/Build-And-Deploy-A-REST-API-With-Flask 

$ python -m venv env 

Activate the virtual environment

$ source env/bin/actvate #On linux Or Unix

$ source env/Scripts/activate #On Windows 
 

Install all requirements

$ pip install -r requirements.txt

Run the project in development

$ export FLASK_APP=api/

$ export FLASK_DEBUG=1

$ flask run

Or

python runserver.py

About

This is a repository for a playlist of videos where I teach building RESTful API with Flask and Flask extensions.

https://www.youtube.com/playlist?list=PLEt8Tae2spYnFMndU9EM082imnnzke07J


Languages

Language:Python 97.4%Language:Mako 2.6%