first part of documentation

master
chae 1 year ago
parent ee03f31efb
commit 8509508a5b

@ -0,0 +1,22 @@
# Flask example
This is a Flask example that you can use to make web applications.
## Install
You need to install Flask on your computer (or on the server you are working):
`$ pip3 install flask`
## Run the web application
You can run the example application in different ways, here two examples:
* `$ python3 app.py`
* `$ flask --debug run`
## Documentation
* <https://flask.palletsprojects.com/en/2.2.x/>
* <https://pzwiki.wdka.nl/mediadesign/Flask>

@ -1,22 +1,38 @@
# Flask example
# Flask
Flask is --- (2 sentences)
This is a Flask example that you can use to make web applications.
## SET UP
## Install
First clone the repository (aka repo)
You need to install Flask on your computer (or on the server you are working):
```git clone https://git.xpub.nl/manetta/flask-example.git```
`$ pip3 install flask`
then move in to the folder
## Run the web application
```cd flask-example```
You can run the example application in different ways, here two examples:
Create virtual environment (need explanation what is virtual environment and why this is needed `---> wiki⛄`)
This will create a virtual environment in a folder called venv.
(the first venv is the command, the second venv is the name of the folder)
* `$ python3 app.py`
* `$ flask --debug run`
[Virtual Environment](wiki/Home_hello)
## Documentation
* <https://flask.palletsprojects.com/en/2.2.x/>
* <https://pzwiki.wdka.nl/mediadesign/Flask>
```python3 -m venv venv```
Install requirements.
We are taking the list of packages to install from a file called `requirements.txt` (maybe more on that in the wiki?)
```pip install -r requirements.txt```
## RUN LOCALLY
- run python
## RUN GLOBALLY..?
## How to manage Locally and globally
use git

@ -0,0 +1,2 @@
What is markdown file?
Put drawings and ascii art inside README
Loading…
Cancel
Save