Commit 2b4af5e1 authored by gordon bleu's avatar gordon bleu
Browse files

improve docs

parent 41d018e6
......@@ -22,6 +22,8 @@ make test
## pipenv
Manages virtual python enviroments and dependencies.
### Setup pipenv on linux (mint 20)
[Source](https://pipenv.pypa.io/en/latest/install/#installing-pipenv)
......@@ -64,7 +66,6 @@ export FLASK_APP="pixelframe"
flask run
```
Or run it _outside_ of the env:
```
......@@ -72,26 +73,6 @@ export FLASK_APP="pixelframe"
pipenv run flask run
```
## webapp
In the project directory, create a virtual environment:
```
python3 -m venv venv
```
activate the environment
```
. venv/bin/activate
```
install flask
```
pip install Flask
```
Activate the env in vscode also: ctrl-shift-p, "Python: Select Interpreter"
Following the ["Simple packages"](https://flask.palletsprojects.com/en/1.1.x/patterns/packages/) guide to structure the project, then run it with:
......@@ -104,22 +85,13 @@ $ flask run
### httpie fun
Sending a json array using [httpie](https://httpie.io/):
```
$ http POST localhost:5000/images images:='[]'
```
### dependency management
Still todo, but for now the dependen packages are installed manually useing pip,
then written into `requirements.txt`:
```
$ pip install <foo>
$ pip freeze > requirements.txt
```
## todo
* Deal with smaller images (e.g. snakify is broken with 10x10)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment