Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```