Skip to content

Awesome TangoMan Flask Boilerplate is a fast and handy tool to manage your Flask application with virtualenv easily

License

Notifications You must be signed in to change notification settings

TangoMan75/flask-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TangoMan Flask Boilerplate

Awesome TangoMan Flask Boilerplate is a fast and handy tool to manage your Flask application with virtualenv easily

Features

TangoMan Flask Boilerplate provides the following features:

  • Install Python
  • Deploy Flask app locally
  • Deploy Flask app in Virtualenv

Installation

Just enter following command

$ make up

Dependencies

TangoMan Flask Boilerplate requires the following dependencies:

  • Make

Make

Install Make (Linux)

On linux machine enter following command

$ sudo apt-get install -y make

Install Make (Windows)

On windows machine you will need to install cygwin or GnuWin make first to execute make script.

Usage

Run make to print help

$ make [command] filename=[filename] port=[port] virtualenv=[virtualenv] 

Valid commands are: help install run freeze dev-install check-install up serve stop venv-run venv-create venv-start venv-stop venv-install venv-remove venv-up venv-serve venv-kill

Commands

help

$ make help

Print this help

Python3 CLI

install

$ make install

Install

run

$ make run

Start app

freeze

$ make freeze

Generate requirements.txt

Python3 Host

dev-install

$ make dev-install

Install development environment (python, pip, virtualenv)

Check Python install

check-install

$ make check-install

Check correct python environment installation

Python Flask

up

$ make up

Deploy and start Flask app locally with one command

serve

$ make serve

Open default browser Serve app with gunicorn at localhost

stop

$ make stop

Kill gunicorn server

Python Virtualenv

venv-run

$ make venv-run

Start

venv-create

$ make venv-create

Create virtualenv

venv-start

$ make venv-start

Activate virtualenv

venv-stop

$ make venv-stop

Deactivate virtualenv

venv-install

$ make venv-install

Install in virtualenv

venv-remove

$ make venv-remove

Remove virtualenv

Python Virtualenv Flask

venv-up

$ make venv-up

Deploy and start your Flask app in fresh virtualenv with one command

venv-serve

$ make venv-serve

Serve app with gunicorn from virtualenv

venv-kill

$ make venv-kill

Kill gunicorn server and remove virtualenv

License

Copyrights (c) 2020 "Matthias Morin" <mat@tangoman.io>

License Distributed under the MIT license.

If you like TangoMan Flask Boilerplate please star, follow or tweet:

GitHub stars GitHub followers Twitter

... And check my other cool projects.

LinkedIn

About

Awesome TangoMan Flask Boilerplate is a fast and handy tool to manage your Flask application with virtualenv easily

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published