Skip to content

Commit a663210

Browse files
authored
Update README.md
1 parent b8c5a11 commit a663210

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# Flask minimal example
22

3-
## Running with PyCharm
4-
Run this project in Pycharm as Flask application. Then send a request with the browser, curl or Postman.
5-
63
## Running on a remote server
74

5+
### One-line command (new installation)
6+
7+
```bash
8+
git clone https://github.com/mikbuch/flask_minimal_example && cd flask_minimal_example && sudo apt-get install python3-pip && sudo pip3 install pipenv && pipenv install --python $(which python3) && sudo $(pipenv --venv)/bin/flask run --host=0.0.0.0 -p 80
9+
```
10+
11+
## Re-running the application
12+
13+
On the server when the application was previously installed you can just run flask application.
14+
815
If your virtual environment is already installed and you are just (re)starting the server (Flask application) use the below command:
916
```
1017
sudo $(pipenv --venv)/bin/flask run --host=0.0.0.0 -p 80
@@ -18,7 +25,7 @@ Where:
1825
* `$USER` is your username (where virtual environment was created)
1926
* `$XYZ` and `$ABCDE` are hash codes for the directory of the virtual environment
2027

21-
## Installation
28+
## Installation (step-by-step)
2229

2330
First clone this repository to the remote server:
2431
```
@@ -85,3 +92,8 @@ Args:
8592
ImmutableMultiDict([('some_param', '3')])
8693
--------------------
8794
```
95+
96+
## Development
97+
98+
### Running with PyCharm
99+
Run this project in Pycharm as Flask application. Then, to send a request with the browser, use curl or Postman.

0 commit comments

Comments
 (0)