Skip to main content

Generate a new Flask app project.

Project description

kickstart-flask-app

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.

Install

pip install kickstart-flask-app

Usage

You could use this package in two ways:

1. Command line (recommended)

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

2. 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.

Start the server

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

Endpoints provided

/ renders html template

/api returns json data

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

kickstart_flask_app-1.2.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

kickstart_flask_app-1.2.0-py3-none-any.whl (7.4 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