Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published