-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
68 lines (47 loc) · 2.09 KB
/
README.txt
File metadata and controls
68 lines (47 loc) · 2.09 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
server README
for setting up the server side of the Optimate project
======================================================
Getting Started in development mode
-----------------------------------
- Ensure you have python and sqlite installed in you system
If not you can follow the installation steps here: http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/installation.html
- cd <directory containing this file>
virtualenv .
./bin/pip install -e src/optimate.app/
- Ensure you have the database file, server.sqlite, in the current folder
- Start the server by running:
./bin/pserve development.ini --reload
- Going to http://127.0.0.1:8100/ will show the login page
- To run server unit tests
(in this directory and with the virtualenv set up)
bin/nosetests -s src/optimate.app/optimate/app/tests
- Build the database tables by running:
./bin/initialize_server_db development.ini
- To run the populate database script:
Note: this will replace the current server.sqlite file in this directory
Also, it is assumed a folder named 'exceldata' is in this directory
containing the excel spreadsheets, as well as a folder data.csv
with the csv data
./bin/python src/optimate.app/optimate/app/scripts/csvpopulatedb.py
=================================================================================
Client README
for setting up the client in the Optimate Project
-----------------------------------------------
- Ensure you have NodeJS installed on your system
- cd <directory containing this file>
- cd theme
- Download the tool dependencies by running:
npm install
- Start the client server by running:
npm start
- The client server will start and the Optimate root view can be accessed via
http://127.0.0.1:8000
- Enter your login details in the login page
- To run client side tests:
Ensure you have protractor installed, if not follow the instructions at:
http://www.protractortest.org/
Start the selenium server with:
webdriver-manager start
In a new terminal:
cd <directory containing this file>
protractor theme/test/conf.js