The IoT-Framework is a computation engine for the Internet of Things (IoT). It was developed jointly by Ericsson Research, the Swedish Institute of Computer Science (SICS) and Uppsala University in the scope of Project CS 2013. This repository contains the website (or GUI) for the IoT-Framework. In order to use it, you will also need the IoT-Framework-engine
You can check out a demo of the IoT-Framework here: IoT-Framework demo.
- Linux (Ubuntu 14.04.2)
- IoT-Framework-engine
-
You need to set an option for your shell in order for all of the software to work. Run
make help
and read the 'Important' section and follow the instructions.
-
Download and compile the dependencies, and compile the project sources
make install
-
Run the application
make run
-
Install the gems needed:
bundle install --without production
-
Migrate the database:
bundle exec rake db:migrate
-
Download and start the IoT-Framework API hosted here: https://github.com/EricssonResearch/iot-framework-engine
-
Modify the API_URL variable declared in the config/config.yml file to reflect the hostname/port of the API (by default the API uses port 8000):
API_URL: "<Put your base URL here>:<put your port here>"
-
Start the Rails server:
rails s
-
Install the gems needed:
bundle install
-
Migrate the database:
RAILS_ENV=production bundle exec rake db:migrate
-
Precompile Rails assets:
RAILS_ENV=production bundle exec rake assets:precompile
-
Modify the
config/config.yml
file according to your needs. -
Open the script called
sensor_cloud
located in the sensor-cloud-website root folder, and modify theUSER
andRAILS_ROOT
variables in accordance to your system settings. -
Run:
sudo cp sensor_cloud /etc/init.d/ sudo chmod +x /etc/init.d/sensor_cloud sudo update-rc.d sensor_cloud defaults
Next time you reboot your computer, the Rails server should be running and the website accessible at http://localhost:3000
(it may take a couple of seconds for the server to start after rebooting).
-
Run the tests
make test
You can take a look at the wiki [here] (https://github.com/EricssonResearch/iot-framework-gui/wiki).
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
IoT-Framework is released under the [Apache License] (http://opensource.org/licenses/Apache-2.0).