Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiscenblue/flask-starter-kit
Flask application boilerplate for microservice
https://github.com/aiscenblue/flask-starter-kit
flask flask-api flask-application flask-boiler-plate flask-boilerplate flask-restful microservice microservices python python-2 python-3 python2 python3
Last synced: 3 months ago
JSON representation
Flask application boilerplate for microservice
- Host: GitHub
- URL: https://github.com/aiscenblue/flask-starter-kit
- Owner: aiscenblue
- License: mit
- Created: 2017-10-25T03:08:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-19T02:31:02.000Z (about 6 years ago)
- Last Synced: 2024-05-28T04:10:33.094Z (5 months ago)
- Topics: flask, flask-api, flask-application, flask-boiler-plate, flask-boilerplate, flask-restful, microservice, microservices, python, python-2, python-3, python2, python3
- Language: Python
- Homepage:
- Size: 56.6 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - aiscenblue/flask-starter-kit - Flask application boilerplate for microservice (Python)
README
# Requirements:
```
Python 2.7 or higher
```
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)# Install requirements
`pip install -r requirements.txt`# Setup configuration
> open: config/app.py
```
HOST = "0.0.0.0"
DEBUG = True / False
PORT = 8000
```# RUN
> python start.py
```
* Restarting with stat
* Debugger is active!
* Debugger PIN: 131-964-042
* Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
```# Register blueprint
### flask blueprint documentation
> https://github.com/aiscenblue/flask-blueprint
> docs http://flask-starter-kit.readthedocs.io/en/latest/
`NOTE :: if it's a sub directory it must consist a __init__.py
file to be recognize as a package````
from flask import Blueprint, make_response""" blueprint module for url handler """
method = Blueprint(__name__, __name__)@method.route("/", methods=['GET'])
def index():
return make_response("Welcome to flask starter kit!", 200)
```# Configure application core
`configurations are modified in start.py`
> https://github.com/aiscenblue/flask-app-core