Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonelgalan/hello-flask
Sample Flask App
https://github.com/leonelgalan/hello-flask
flask hello-world heroku python
Last synced: 30 days ago
JSON representation
Sample Flask App
- Host: GitHub
- URL: https://github.com/leonelgalan/hello-flask
- Owner: leonelgalan
- Created: 2018-08-14T17:47:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-14T18:13:30.000Z (over 6 years ago)
- Last Synced: 2024-10-31T08:26:51.568Z (3 months ago)
- Topics: flask, hello-world, heroku, python
- Language: Python
- Homepage: https://secure-sands-24834.herokuapp.com/
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Flask App
## Goals
* [x] Build a Hello World
* [x] [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) or run locally: `heroku local`
* [x] Work with JSON
* [x] Explore custom commands## Examples
### `GET /`
```sh
curl --request GET \
--url http://localhost:5000
```### `GET /echo`
```sh
curl --request GET \
--url http://localhost:5000/echo \
--header 'Content-Type: application/json' \
--data '{"hello": "world"}'
```### `say_hi` Command
```sh
pipenv run flask say_hi Leonel
```
```
Hello Leonel
```