Skip to content
Fabian edited this page Dec 18, 2016 · 20 revisions

#Requirements:

  • InfluxDB
  • Node
  • npm

#Installation: After cloning the Project, the required modules/libraries have to be downloaded. To do so, execute the following command inside terminal/command line

npm install

in /yourPath/SmartChair/database
and
in /yourPath/SmartChair/database/server

All required libs (except the ones listed under #requirements) will be downloaded. There may occur some warnings; these can be ignored, as long as there are no errors.

Note: Due to an import bug it is necessary to manually move the socket.io.js from

/yourPath/SmartChair/database/node_modules/socket.io-client/dist
to
/yourPath/SmartChair/database/node_modules/socket.io-client/

#Setting up server IP The client sockets need to know the server IP in order to be able to establish a connection. The server IP needs to be manually set in

chair.service.ts

The attribute serverIP needs to be set as desired.

#Starting the application: Make sure the InfluxDB is up and running. after this, in /yourPath/SmartChair/database run the following command in terminal/command line:

npm run start2

this will start the server and notify you with the respective address and port it runs on when complete. After this, open any browser and open the given address.

#Sequence Following illustration shows the sequence from starting the server to displaying the components Sequence CLARC

#Components Overview of the components used for this project

Components CLARC

Clone this wiki locally