Skip to content

weiztech/Flask-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Sample

Documentation-Driven Development API Using Flask

Run Server

Create Mysql database with name flask_sample and Go to app dir

cd app

Install Dependency Modules

pip install -r requirements.txt

Call flask init-db command for create table and sample data (Note: should be run one time not multiple times)

cd app
flask init-db

Run Flask Server

flask run

Documentation

Documentation url can be access after run server

Swagger
http://localhost:5000/doc/swagger-ui
Redoc
http://localhost:5000/doc/redoc
Rapidoc
http://localhost:5000/doc/rapidoc

Test API

on root Folder, run below command

pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published