small change

documentation
chae 1 year ago
parent a8e7e91a2d
commit e0827a2095

@ -16,7 +16,7 @@ then navigate to the folder
Create a virtual environment. This is a contained workspace where you can install packages and libraries. It is useful in order to keep track of external dependencies, avoid version conflicts, and it provides handy tools to share your workplace with others or install it somewhere else later on. Read more in the [wiki ⛄︎](https://git.xpub.nl/manetta/flask-example/wiki/venv)!
```python3 -m venv venv```
`python3 -m venv venv`
<!-- TODO: image for variable names -->
@ -26,10 +26,10 @@ Note that the first `venv` is the command, the second `venv` is the name of the
Once the virtual environmnent folder has been created, you need to activate it. There are different ways to do it, depending on your operative system. (we are at the terminal)
On Mac and Linux
```source venv/bin/activate```
`source venv/bin/activate`
On Windows
```venv\Scripts\activate```
`venv\Scripts\activate`
If everything went ok you should notice that the virtual environment `(venv)` is now active in your terminal.
@ -37,7 +37,7 @@ Find more information info here: [Python Virtual Environments: A Primer](https:/
Now you can install the requirements. For this small example the only required packages to install is Flask.
```pip install flask```
`pip install flask`
Now you are ready to go!
@ -46,7 +46,7 @@ Now you are ready to go!
In order to start the application you need to run the `app.py` with Python.
The simplest way to do it is: (btw you are still in the terminal)
```python app.py```
`python app.py`
And that will prompt
@ -125,7 +125,7 @@ PORT=3000
### Generate requirements.txt
(or maybe this happens in the beginning ??????? let's see)
```pip freeze > requirements.txt```
`pip freeze > requirements.txt`
use pip to- create a requirements.txt file that specifies which packages we need to install

Loading…
Cancel
Save