https://github.com/syncano/syncano-ruby-demo
https://github.com/syncano/syncano-ruby-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/syncano/syncano-ruby-demo
- Owner: Syncano
- Created: 2014-07-29T13:33:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T20:20:16.000Z (over 10 years ago)
- Last Synced: 2023-08-12T18:08:53.196Z (almost 2 years ago)
- Language: Ruby
- Size: 242 KB
- Stars: 0
- Watchers: 22
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Syncano ruby gem demo
This is a demo Ruby on Rails application for [Syncano ruby gem](https://github.com/Syncano/syncano-ruby) - library for communication with Syncano ([www.syncano.com](http://www.syncano.com))
Click here to learn more about [Syncano](http://www.syncano.com) or [create an account](https://login.syncano.com/sign_up)!
Below are described most important parts of the app.
## Initializer
[Initializer](config/initializers/syncano.rb) contains basic configuration for Syncano client and Syncano ActiveRecord.
## Syncano ActiveRecord
Some models ([Auction](app/models/auction.rb), [Category](app/models/category.rb), [NotificationSetting](app/models/notification_setting.rb)) are stored in the Syncano. They inherit from Syncano::ActiveRecord::Base class.
As you can see they looks quite similar to standard ActiveRecord::Base classes. The main difference is a necessity of defining attributes.
## Syncano notificationsThere is [a rake task](lib/tasks/auctions.rake) which allows for notifying users about new auctions. It uses Syncano Sync API.
## More information
For more information check Syncano ruby gem [documentation](http://rubydoc.info/gems/syncano/3.1.1/frames) and [Syncano Docs](http://docs.syncano.com).