docs(readme): add explicit install step for quick start
This commit is contained in:
parent
2ac89889f4
commit
e55ffdb5b7
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -19,6 +19,14 @@ community that make adding new functionality easy.
|
|||
|
||||
## A Simple Example
|
||||
|
||||
Install Flask first:
|
||||
|
||||
```bash
|
||||
pip install flask
|
||||
```
|
||||
|
||||
Then create `app.py`:
|
||||
|
||||
```python
|
||||
# save this as app.py
|
||||
from flask import Flask
|
||||
|
|
@ -30,6 +38,8 @@ def hello():
|
|||
return "Hello, World!"
|
||||
```
|
||||
|
||||
Run the development server:
|
||||
|
||||
```
|
||||
$ flask run
|
||||
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue