From 8c9fdfdab950f36dcb821f1a0e5d14e437053b5c Mon Sep 17 00:00:00 2001 From: balbino aylagas Date: Mon, 17 Jul 2023 22:35:08 -0600 Subject: [PATCH] add readme file --- README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c62fa3d --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ + +--- +# 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 + +```bash +pip install pipenv --user +``` + +## Create a new virtual environment + +```bash +pipenv shell +``` + +## Install requirements + +```bash +pipenv install -r requirements.txt +``` + +## Run the project + +```bash +python app.py +``` + +## Usage: play around with your code + +```py +from flask import Flask + +app = Flask(__name__) + + +@app.route("/") +def hello(): + return "hello world" + + +if __name__ == "__main__": + app.run(debug=True) +``` \ No newline at end of file