Skip to main content

A tool to create flask boilerplate code

Project description

flask create readme

Flask-Create

Author: Deekshith Anand

A python package to create production grade flask boiler plate setup.

Usage:

Create venv inside the project folder.

	pip install flask-create

Once it is installed, in your root project directory hit this:

	flask-create

That's it you are all set and good to go!

Important!

You need to create a .env file with key value pairs containing all the required credentials.

Default Factory setup

This approach embraces blueprints. It is implemented in the template. All your code lies inside the src, which can be treated like a package. The other related files like config files, scripts files, etc . . are included outsied src(which will be you project repo)

To init db /invoke SQLAlchemy creatall():

Define your models in models.py . A default script is provided in scripts.py.You can have your own scripts defined here along with their equivalent commands(Look into flask-script extension for more). To int db run this from outside src(i.e., root project folder):

	python scripts.py init-db

To run flask app run this from root folder where flask-create was called:

	python wsgi.py
Note : - The default config is provided for dev. Production config can be modified by user in config.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-create-0.0.2.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

flask_create-0.0.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page