Skip to main content

A sample Flask app

Project description

Sample flask app project

About

Sample flask application packaged and ready to deploy

Goals

The main project goals are:

  • sample skeleton for fast start develop;
  • usage flask_sample package from pypi for checking docker python web app packaging;

Deploying on production

pip3 install flask-sample[gunicorn]
gunicorn --bind 127.0.0.1:8088 flask_sample.wsgi

Setup and configure development environment

Clone repository

git clone git@github.com:ph20/flask-sample.git

Create virtual environment with venv module

cd flask-sample
python3 -m venv ./venv
source ./venv/bin/activate
pip install -e .[dev]

Try to run application in development mode

python ./src/flask_sample/app.py

Preparing python packages

source package python setup.py build sdist

wheel package python setup.py build bdist_wheel

Find packages in dist directory

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-sample-0.4a4.tar.gz (59.3 kB view hashes)

Uploaded Source

Built Distribution

flask_sample-0.4a4-py3-none-any.whl (57.1 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