Skip to content

A sample project to built Restful API using python and flask

Notifications You must be signed in to change notification settings

zalhamami/flask-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask API

A sample project to built Restful API using python and flask

Installation

Use the package manager pip to install the required dependencies

pip install -r requirements.txt

Getting Started

Manual Setup

  1. Make a config file by copying the configuration sample in ./instance/config.py.sample to ./instance/config,py

  2. Modify the database configuration in ./instance/config.py

  3. Migrate the database by running the following command

    flask db init
    flask db migrate
    flask db upgrade
  4. Start Flask application in development mode

    :: For Windows
    set flask_config=development
    set flask_env=development
    set flask_app=run.py
    flask run
    # For Linux/UNIX Shell
    export flask_config=development
    export flask_env=development
    export flask_app=run.py
    flask run

Automatic Setup (for Debian-based Linux; incl. Ubuntu and WSL)

Coming Soon.

About

A sample project to built Restful API using python and flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published