-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme
More file actions
47 lines (29 loc) · 1.12 KB
/
Copy pathreadme
File metadata and controls
47 lines (29 loc) · 1.12 KB
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
45
Setup the virtualenv
# install virtualenvwrapper - https://virtualenvwrapper.readthedocs.io/en/latest/
mkvirtualenv perks
pip install -r requirements/requirements.txt
To setup the database
psql -d postgres
create user <your user> with password '<some passwors>';
create database perks;
grant all privileges on database perks to <your user>;
\q
workon perks
./tasks.py db upgrade head
./tasks.py create_admin <your_email_address> <some password>
./tasks.py seed_data
Start the server
./run.py
Log in to the site as an admin
point browser to http://localhost:5000
log in as an admin with <your_email_address>/<some password>
log in as an employee with joe@doe.com/password or sue@blue.com/password
clone perks_semantic_ui into the same parent directory as the perks project (git@bitbucket.org:zematynnad/perks_semantic_ui.git)
follow the readme there
#### When adding new migration scripts, HowTo:
Make sure you have a clean pers db.
run:
`./tasks.py db revision --autogenerate -m "<say what changes are being made>"`
next:
`./tasks.py db upgrade`
The previous command will update the database with your migration script created.