Skip to content

Install SicsthSense

LiamMcNamara edited this page Nov 1, 2013 · 9 revisions

Download the code:

$ git clone https://github.com/sics-iot/sicsthsense.git

Database

There must be an SQL server running locally, we recommend MySQL. In the downloaded sicsthsense directory, you should run the INSTALL.sh script to initialise the database and place config files in the correct place:

$ ./INSTALL.sh

Alternatively, the database initialisation can be easily performed by applying the buildDB.sql file:

$ cat buildDB.sql | mysql -u root -p.

Configuration

To give the website interface the correct configuration options copy web/conf/application.conf.default to web/conf/application.conf used for the database password. This action is performed by the INSTALL.sh script.

The engine also needs the database configuration, this is written in the engine/6sense.yml file.

The default database user is called sicsthsense and the default password is sicsdev. These should be changed for any production environment. Both these files should be updated if you change the database user.

Build

To build the SicsthSense Engine, change into the sicsthsense/engine directory, use Maven (allowing automatic dependency management for the 3rd party libraries) to build it:

$ mvn package

Run the packaged .jar file:

./run.sh or java -jar target/engine-*-SNAPSHOT.jar server 6sense.yml

Now you have the SicsthSense up and running!

Clone this wiki locally