https://github.com/jtemporal/flask-request-body-example
https://github.com/jtemporal/flask-request-body-example
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jtemporal/flask-request-body-example
- Owner: jtemporal
- Created: 2021-05-01T20:11:30.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-01T20:12:36.000Z (about 5 years ago)
- Last Synced: 2025-01-12T18:35:26.783Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to pass data inside the request body example with Flask
## Configure your environment
```console
python3 -m venv .env
source .env/bin/activate
pip install -U pip
pip install -r requirements.txt
```
## Run the flask app (development server)
```console
export FLASK_APP=application/app.py
flask run
```
## Making the requests
In a new terminal window, navigate to the project directory and run the following:
```console
source .env/bin/activate
python make_rquests.py
```