File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ # Requirements:
2+ ```
3+ Python 2.7 or higher
4+ ```
5+
6+ # Install requirements
7+ `pip install -r requirements.txt `
8+
9+ # Setup configuration
10+ > open: config/app.py
11+ ```
12+ HOST = "0.0.0.0"
13+ DEBUG = True / False
14+ PORT = 8000
15+ ```
16+
17+ # RUN
18+ > python start.py
19+ ```
20+ * Restarting with stat
21+ * Debugger is active!
22+ * Debugger PIN: 131-964-042
23+ * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
24+ ```
25+
26+
27+ # Register blueprint
28+
29+ ### flask blueprint documentation
30+
31+ > https://github.com/aiscenblue/flask-blueprint
32+
33+ > docs http://flask-starter-kit.readthedocs.io/en/latest/
34+
35+ `NOTE :: if it's a sub directory it must consist a __init__.py
36+ file to be recognize as a package`
37+
38+ ` ``
39+ from flask import Blueprint, make_response
40+
41+ """ blueprint module for url handler """
42+ method = Blueprint(__name__, __name__)
43+
44+
45+ @method.route("/", methods=['GET'])
46+ def index():
47+ return make_response("Welcome to flask starter kit!", 200)
48+
49+ ```
50+
51+ # Configure application core
52+ `configurations are modified in start.py `
53+ > https://github.com/aiscenblue/flask-app-core
You can’t perform that action at this time.
0 commit comments