Skeleton for flask based web applications.
- integrated blueprint
- config with production / development environment management
- template for e2e & unittest tests
- ready configuration files for launching via:
- FastCGI
- gunicorn
- foreman
- gunicorn (optional)
- flask-restful (req. by REST API blueprint)
- flup (optional, req. by Fast-CGI, eg. bluehost shared hosting)
- Clone
- install virtual env
- pip install -r requirements.txt
- foreman start
- config/config.py defines different config objects default containging settings for the app.
- for development environment use config.Dev object
- If you want to select config setup, without code modification you can set CONFIG variable with class name defined in config/config.py
- Config object can be overriden by specifing path to config via environmental variable FLASK_SEED_CONFIG
- Foreman can do this job, just set the variable in the .env file
- based on logbook
- setup globally for application.
- see flaskApp/main.py and flaskApp/blueprints/restapi/HelloWorld.py for usage examples
- default setup directs logs to stderr and file, see utils/logger.py for setup details