Wire up install docs and requirements
And fix an import that I maybe broke but not sure.
This commit is contained in:
parent
fc1b8d7045
commit
54801dcc35
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/.venv/
|
||||||
|
/__pycache__/
|
||||||
|
*.pyc
|
18
README.md
18
README.md
@ -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`.
|
0
library/csvparser/__init__.py
Normal file
0
library/csvparser/__init__.py
Normal file
Binary file not shown.
@ -4,7 +4,7 @@
|
|||||||
import flask
|
import flask
|
||||||
from flask import render_template
|
from flask import render_template
|
||||||
|
|
||||||
from csvparser.csvparser import getpublications
|
from library.csvparser.csvparser import getpublications
|
||||||
|
|
||||||
APP = flask.Flask(__name__, static_folder="static")
|
APP = flask.Flask(__name__, static_folder="static")
|
||||||
|
|
||||||
|
10
makefile
Normal file
10
makefile
Normal 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
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
flask
|
Loading…
Reference in New Issue
Block a user