Wire up install docs and requirements

And fix an import that I maybe broke but not sure.
This commit is contained in:
Luke Murphy 2020-12-12 13:50:00 +01:00
parent fc1b8d7045
commit 54801dcc35
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
7 changed files with 33 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/.venv/
/__pycache__/
*.pyc

View File

@ -0,0 +1,18 @@
# varia-library-website
> Work In Progress
## Hacking
```
$ python3 -m venv .venv && source .venv/bin/activate
$ FLASK_APP=library
```
Or run `make setup`.
```
$ FLASK_APP=library.page flask run
```
Or run `make`.

View File

View File

@ -4,7 +4,7 @@
import flask
from flask import render_template
from csvparser.csvparser import getpublications
from library.csvparser.csvparser import getpublications
APP = flask.Flask(__name__, static_folder="static")

10
makefile Normal file
View File

@ -0,0 +1,10 @@
default: run
setup:
@python3 -m venv .venv && \
.venv/bin/pip install -r requirements.txt
run:
@FLASK_APP=library.page .venv/bin/flask run
.PHONY: setup run

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
flask