-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
45 lines (27 loc) · 1.01 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
to view live: http://littlepixelstitch.com/
This webap lets you make knit patterns (written as if in the round)
It shows what they will look like using SVGs, then allows naming, saving, searching, and liking other patterns.
Steps to use:
create a secrets.sh file that says
export FLASK_KEY='{flask key here}'
create a psql db called "knitpreviewproject"
in the console:
virtualenv env
source env/bin/activate
source secrets.sh
pip install -r requirements.txt
python3 server.py
to run unit tests:
create a psql db called "knitpreviewtest"
in the console:
python flask_db_unittests.py
to run with coverage:
in console:
coverage run --source=. --omit="env/*","winenv/*","tests_selenium.py" flask_db_unittests.py
coverage html
open htmlcov/index.html
to run selenium tests:
install geckodriver & firefox
have the server running
in the console:
python tests_selenium.py