IoT-Framework is a computation engine for sensor stream data.
Note: This repository contains only the website for the IoT-Framework. In order to use it, you need to download and start the API hosted at https://github.com/projectcs13/sensor-cloud
- Linux
- Ruby 1.9.3 (Ruby 2.0 preferred) [To install Ruby 2.0.0-p247 on Ubuntu 12.04 LTS you may want to consider these steps: http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395]
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 installRun the application
make run
Install the gems needed:
bundle install --without productionMigrate the database:
bundle exec rake db:migrateDownload and start the IoT-Framework API hosted here: https://github.com/projectcs13/sensor-cloud
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 installMigrate the database:
RAILS_ENV=production bundle exec rake db:migratePrecompile Rails assets:
RAILS_ENV=production bundle exec rake assets:precompileModify the
config/config.ymlfile according to your needs.Open the script called
sensor_cloudlocated in the sensor-cloud-website root folder, and modify theUSERandRAILS_ROOTvariables 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/projectcs13/sensor-cloud-website/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).
