Skip to content

dreamingechoes/sensors_admin_panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensors Admin Panel

Deploy to Heroku

This application was generated with the rails_apps_composer gem provided by the RailsApps Project.

Rails Composer is open source and supported by subscribers. Please join RailsApps to support development of Rails Composer.

Ruby on Rails

This application requires:

  • Ruby 2.2.2
  • Rails 4.2.4

Learn more about Installing Rails.

About

This is an example of an Admin panel for display and manage values from sensors connected to an Arduino. Was created with Rails Composer from the RailsApps project.

Original author

Iván González, a.k.a dreamingechoes

Getting Started

To start using this Admin panel, you only have to do the typical Rails things:

  • Install Ruby version 2.2.2 (using RVM or RBenv or whatever).

  • Clone the repo and do the bundle install thing:

user@computer:~$ git clone [email protected]:dreamingechoes/sensors_admin_panel.git
user@computer:~$ cd sensors_admin_panel
user@computer:/sensors_admin_panel$ bundle install
user@computer:/sensors_admin_panel$ rake db:setup
  • When all this finish, you're ready to launch the app!
user@computer:/sensors_admin_panel$ rails s

NOTE: the seed.rb file has an ApiKey example token for testing the API, which is ac4bd425935c350a54aabb362906283f, but on ApiKey.create() method it assigns other random access_token. If you want to use the example token for testing purpose, update via console the attribute access_token of the ApiKey to ac4bd425935c350a54aabb362906283f, like this:

user@computer:/sensors_admin_panel$ rails console
Loading development environment (Rails 4.2.4)
>> a = ApiKey.first
  ApiKey Load (0.3ms)  SELECT  `api_keys`.* FROM `api_keys`  ORDER BY `api_keys`.`id` ASC LIMIT 1
=> #<ApiKey id: 2, access_token: "k93eeqa34f9774rko4abecdf86a2nckm", expires_at: "2043-03-12 21:03:46", user_id: 3, active: nil, created_at: "2015-10-26 21:03:46", updated_at: "2015-10-26 21:05:03">
>> a.update_attribute(:access_token, "ac4bd425935c350a54aabb362906283f")
   (1.8ms)  BEGIN
   (0.1ms)  COMMIT
=> true

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Sensors Admin Panel is released under the MIT License.

About

An example of a Rails admin panel for Arduino sensors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published