Skip to content

Commit

Permalink
add readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
baylagas committed Jul 18, 2023
1 parent 9a4ebfa commit 8c9fdfd
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
```

0 comments on commit 8c9fdfd

Please sign in to comment.