API Server Flask
Open-source API Server crafted in Flask using JWT Authentication and SQLite.
Last updated
Was this helpful?
Open-source API Server crafted in Flask using JWT Authentication and SQLite.
Last updated
Was this helpful?
Simple enhanced with JWT authentication, SqlAlchemy, SQLite persistence and deployment scripts via Docker. It has all the ready-to-use bare minimum essentials.
Version: , release date
2022-06-07
- the unified API structure implemented by this server
- source code
Full-stack samples compatible with this product:
- open-source sample
- open-source sample
API Methods - for full description please access
USERS API:
/api/users/register
: create a new user
/api/users/login
: authenticate an existing user
/api/users/logout
: delete the associated JWT token
/api/users/checkSession
: check an existing JWT Token for validity
/api/users/edit
- edit the information associated with a registered user
Python3 (Python2 is not supported)
Flask==2.1.2
flask-restx==0.5.1
Flask-JWT-Extended==4.4.1
pytest
👉 Step 1 - clone the project using GIT
👉 Step 2 - Install dependencies (using a virtual environment)
Install dependencies in once the virtualenv
is activated
👉 Step 3 - Prepare the environment
Or for Windows-based systems
👉 Step 4 - Initialize the database, check
run.py
for shell context
👉 Step 5 - Start the API server
Visit http://localhost:5000
in your browser. The API server will be running.
The codebase has a simple, intuitive structure where run.py
is responsible to bundle and start the API Server using the setup coded by the api
folder:
The product can be used as a standalone server but also as an authentication server for React, Vue products. Such a product already configured with Django API Server is , an open-source React Dashboard.
- product page
👉 ​ - source code