Update cloud project README files
[platform/upstream/iotivity.git] / cloud / resourcedirectory / README
1 This project contains the Resource Directory(RD) Server code.
2
3 Build and Run
4
5 1) Install Apache Maven if you don't have it
6
7         http://maven.apache.org
8
9 2) Install Mongo DB if you don't have it
10
11         http://www.mongodb.org/downloads
12
13 3) Build a CloudStack. If you are building first time, then build the stack.
14
15         go to "stack" folder in root directory
16         $ mvn install -Dmaven.test.skip=true
17
18 4) Build a .jar file
19
20         $ mvn install -Dmaven.test.skip=true
21
22         - The CloudResourceDirectory-0.0.1-SNAPSHOT.jar file will be placed in the "target" folder
23
24 5) Run .jar file
25
26         go to "target" folder
27         $ java -jar CloudResourceDirectory-0.0.1-SNAPSHOT.jar arg1(RD CoAP Server Port) arg2(MongoDB IP Address) arg3(MongoDB Port) arg4(TLS mode required)
28         e.g java -jar CloudResourceDirectory-0.0.1-SNAPSHOT.jar 5684 127.0.0.1 27017 0
29
30     - If you want to operate on TLS mode, "CLOUD_CERT_FILE(iotivitycloud.crt)", "CLOUD_KEY_FILE(iotivitycloud.key)" and ROOT_CERT_FILE(rootca.crt) files should be placed in the "target" folder.