diff --git a/lab5/src/README.md b/lab5/src/README.md index 929ba25c0fb483b2b300726230ca6494f036d505..caa6d095dc6c1171b6b6f00a07895c6d0ecd73c4 100644 --- a/lab5/src/README.md +++ b/lab5/src/README.md @@ -7,75 +7,63 @@ 1. Install `virtualenv` package and create a new environment in the `./src` folder project - + On Linux and macOS : - On Linux and macOS : - +```python +python3 -m virtualenv env +``` - ``` - python3 -m virtualenv env - ``` + On Windows : - - On Windows : +```python +python -m virtualenv env +``` - ``` - python -m virtualenv env - ``` - - 2. Activate the virtual environment with : - + On Linux and macOS : - On Linux and macOS : +```python +source env/bin/activate +``` - + On Windows : - ``` - source env/bin/activate - ``` - On Windows : - - ``` - .\env\Scripts\activate - ``` - -3. Then install all packages dependencies in `requirements.txt` : +```python +.\env\Scripts\activate +``` - +3. Then install all packages dependencies in `requirements.txt` : - ``` - pip install -r requirements.txt - ``` +```python +pip install -r requirements.txt +``` 4. Define environment variables - - - On Linux and macOS : + On Linux and macOS : - ``` - export FLASK_ENV=development - export FLASK_APP=app.py - ``` +```python +export FLASK_ENV=development +export FLASK_APP=app.py +``` - On Windows : + On Windows : - ``` - set FLASK_ENV=development - set FLASK_APP=app.py - ``` +```python +set FLASK_ENV=development +set FLASK_APP=app.py +``` ## Starting the web server (REST API) -``` +```python python -m flask run ```