User Tools

Site Tools


iotivity_cloud_-_programming_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
iotivity_cloud_-_programming_guide [2017/01/18 04:30]
Nivedita Singhvi
iotivity_cloud_-_programming_guide [2018/07/10 07:41]
Bruce Lee [Run servers] fix cloud acount run problem
Line 12: Line 12:
 The cloud projects are located under {IoTivity root}/cloud folder. The folder name represent project itself. Account, Interface, Resource-directory and MessageQueue is java 8 based projects. Stack is base project for other server projects. So you should build Stack project first. You can also refer README file in each folder how to build and run. All java projects are maven ready. We assume that maven installed. Otherwise install it from http://​maven.apache.org The cloud projects are located under {IoTivity root}/cloud folder. The folder name represent project itself. Account, Interface, Resource-directory and MessageQueue is java 8 based projects. Stack is base project for other server projects. So you should build Stack project first. You can also refer README file in each folder how to build and run. All java projects are maven ready. We assume that maven installed. Otherwise install it from http://​maven.apache.org
 <​code>​ <​code>​
-~iotivity/​cloud/​stack ​$ mvn install -Dmaven.test.skip=true+~iotivity/​cloud $ mvn install -Dmaven.test.skip=true
 </​code>​ </​code>​
- 
-After stack installation,​ you can build other projects. 
-<​code>​ 
-~iotivity/​cloud/​resourcedirectory $ mvn install -Dmaven.test.skip=true 
-</​code>​ 
- 
-<​code>​ 
-~iotivity/​cloud/​account $ mvn install -Dmaven.test.skip=true 
-</​code>​ 
- 
-<​code>​ 
-~iotivity/​cloud/​messagequeue $ mvn install -Dmaven.test.skip=true 
-</​code>​ 
- 
-<​code>​ 
-~iotivity/​cloud/​interface $ mvn install -Dmaven.test.skip=true 
-</​code>​ 
- 
  
 The Account and Resource-directory server requires mongodb to store data. The Account and Resource-directory server requires mongodb to store data.
Line 56: Line 38:
 * Run Resource Directory server * Run Resource Directory server
 <​code>​ <​code>​
-~iotivity/​cloud/​resourcedirectory/​target $ java -jar CloudResourceDirectory-0.0.1-SNAPSHOT.jar 5684 0+~iotivity/​cloud/​resourcedirectory/​target $ java -jar CloudResourceDirectory-0.0.1-SNAPSHOT.jar 5684 127.0.0.1 27017 0
 </​code>​ </​code>​
  
 * Run Account server * Run Account server
 <​code>​ <​code>​
-~iotivity/​cloud/​account/​target $ java -jar CloudAccount-0.0.1-SNAPSHOT.jar 5685 0+~iotivity/​cloud/​account/​target $ cp -arf ../​properties . ; java -jar CloudAccount-0.0.1-SNAPSHOT.jar 5685 127.0.0.1 27017 0
 </​code>​ </​code>​
  
Line 71: Line 53:
 * Run Interface server * Run Interface server
 <​code>​ <​code>​
-~iotivity/​cloud/​interface/​target $ java -jar CloudInterface-0.0.1-SNAPSHOT.jar 5683 127.0.0.1 5684 127.0.0.1 5685 127.0.0.1 5686 0+~iotivity/​cloud/​interface/​target $ java -jar CloudInterface-0.0.1-SNAPSHOT.jar 5683 127.0.0.1 5684 127.0.0.1 5685 127.0.0.1 5686 80 8000 0
 </​code>​ </​code>​
  
iotivity_cloud_-_programming_guide.txt ยท Last modified: 2018/07/10 07:41 by Bruce Lee