This is a simple package to kickstart a new Flask app project. It creates a new Flask project with a simple structure and some endpoints.
pip install kickstart-flask-app
You could use this package in two ways:
Type the following in your terminal
kickstart-flask-app
The above will propmt you to enter some data, press enter to use defaults. This will create a new Flask project in the path you run the python interpreter
from kickstart_flask_app import console
console()
Same as the command line, this will prompt you to enter some data, press enter to use defaults.
First, setup the virtual environment and set environment variables. (APP_ENV or FLASK_ENV to 'dev' or 'prod')
cd <your_project_name>
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export FLASK_ENV=dev
Then start the server
python wsgi.py
The server should be running on http://localhost:5000
/
renders html template
/api
returns json data