-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
36 lines (25 loc) · 1.3 KB
/
INSTALL
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
This is the INSTALL file for SensorAct-1.0 Repo
Follow the below steps to set up the SensorAct repository
1. Download and install play-1.2.4
$ wget http://download.playframework.org/releases/play-1.2.4.zip
$ sudo unzip play-1.2.4.zip -d /opt/
2. Install play morphia-1.2.6a (MongoDB Integration with play)
$ cd /opt/play-1.2.4/
$ sudo ./play install morphia-1.2.6a
3. Download and install mongodb-2.0.5 64bit (32bit version has a limitation of 2GB data space)
$ wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.5.tgz
$ sudo tar -C /opt -zxvf mongodb-linux-x86_64-2.0.5.tgz
$ sudo mkdir -p /data/db/
$ sudo chown `id -u` /data/db
4. Export the PATH. Also insert the following line to your ~/.profile
$ export PATH=$PATH:/opt/play-1.2.4:/opt/mongodb-linux-x86_64-2.0.5/bin
5. Checkout the SensorAct-1.0 source code from Github
$ git clone https://github.com/iiitd-ucla-pc3/SensorAct.git
6. Start mongodb (run on a different terminal)
$ mongodb
7. Run SensorAct-1.0. Go to the home directory of SensorAct-1.0
$ cd SensorAct/SensorAct-1.0
$ play run
8. Test it. By default SensorAct-1.0 repo will be listening on port 9000. To test it go to http://localhost:9000/
You should be getting a welcome line that means that you have successfully installed SensorAct-1.0
That's all!