-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSETUP_TESTING
78 lines (48 loc) · 1.7 KB
/
SETUP_TESTING
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
69
70
71
72
73
74
75
76
77
78
Installing OCEMR for Development or Testing
===========================================
NOTE: This is getting there...
Start with Debian 10 (Buster).
Preparing the Environment
-------------------------
- Install Prerequisites:
$ sudo apt-get install git python-sqlite python-matplotlib python-enchant python-simplejson sqlite3
$ sudo apt-get install -t stretch-backports python-django
- Git a copy of the software:
$ git clone git://github.com/ocemr/ocemr.git
$ cd ~/ocemr
- Setup the main config File:
Replace all instances of USER with your username
$ cp ocemr/settings.py.DIST ocemr/settings.py
- Tweak the sqlite3 database section (set `NAME` to a location for the db):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/home/USER/var/ocemr/db',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
- configure *_PATH settings to point to development directory
APP_PATH="/home/USER/ocemr"
CONTRIB_PATH="/home/USER/ocemr/contrib"
UTIL_PATH="/home/USER/ocemr/util"
VAR_PATH="/home/USER/var/ocemr"
$ mkdir -p ~/var/ocemr
- Setup Utilities Configuration:
$ cp ./util/util_conf.py.DIST ./util/util_conf.py
- Change APP_PATH
APP_PATH="/home/USER/ocemr"
Setting up the Database
-----------------------
- Reset the database:
$ ./util/initialize_test_db.sh
- Add a super user:
$ python ./manage.py createsuperuser
Running the Testing Server
---------------------------
- Run the server
$ python ./manage.py runserver
- Goto http://localhost:8000/ in your browser.
- Start Testing!