Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 791 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 791 Bytes

Python Flask Template 2023

The purpose of this project is to use to play around. It uses pipenv, flask and has its own requirements.txt

Clone this repo

  • with an empty folder
  • open terminal
  • please install git before you continue
  • write: git clone https://github.com/baylagas/python-flask-template-2023.git then press enter

Install pipenv

pip install pipenv --user

Create a new virtual environment

pipenv shell

Install requirements

pipenv install -r requirements.txt

Run the project

python app.py

Usage: play around with your code

from flask import Flask

app = Flask(__name__)


@app.route("/")
def hello():
    return "hello world"


if __name__ == "__main__":
    app.run(debug=True)