Flask Starter

Quick start demo

Init flask project via cli

cli init method will creat folder with name flask in the current directory.

lets init flask

Run flask locally to test project

You have to install flask in advance: Flask Quickstart

flask run

Define you dependency in your pythons projects

# manually config requirements.txt

echo "flask==1.1.2" > requirements.txt
# if you are using pipenv <https://github.com/pypa/pipenv>, you could directly init via `pipenv lock`

pipenv lock -r > requirements.txt
# if you are using poetry <https://python-poetry.org/docs/cli/>, you could directly init via `poetry export`

poetry export -f requirements.txt --output requirements.txt

Deploy to let.sh

if you haven't install lets, please take a look at the documentation: Cli Overview.

lets deploy
Edit this page on GitHub Updated at Tue, Jun 1, 2021