Skip to main content

A flask app generator package

Project description

Build Flask App

An easy to use flask app generator that allows users to create flask apps simply by running one command.

Install using source code

To download the app generator, you can clone this repository to your local machine.

$ git clone https://github.com/kouul/build-flask-app
$ cd build-flask-app

Install using pip3

$ pip3 install build-flask-app

Package @ PyPI repository: https://pypi.org/project/build-flask-app/

Usage

Ensure that you have flask installed on your environment. You can install flask using pip3 install flask.

$ build-flask-app app_name
$ cd app_name
$ python3 app.py

Open up http://localhost:5000/ to see your Hello World app.

Arguments

Below is a list of arguments you can pass when building your flask application.

Enable Debug Mode

You can enable debug mode on while creating your flask app by using the option -dB

$ python3 build-flask-app.py app_name -dB
Import style.css and app.js

You can import stylesheet and javascript file automatically while creating the app using -sS option

$ python3 build-flask-app.py app_name -sS
Create Dockerfile and docker-compose script

You can push the app to a docker container instead of running it locally. Simply use -dC option. Please note that the image generated in Dockerfile is python:3.7-alpine. You might want to change this to the non-alpine version for big projects

$ python3 build-flask-app.py app_name -dC

Coming features

  • [ ] Manual(--help)
  • [x] Debug option on (-dB)
  • [x] Include Stylesheet and Script (-sS)
  • [x] Push app to docker container (-dC)
  • [ ] Deploy on heroku (-hK)

Feel free to create issue in case something is not working :)

Project details


Download files

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

Files for build-flask-app, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size build_flask_app-0.0.7-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page