A simple ToDo application in Sinatra, Ruby on Rails, and MongoDB. Deployed at http://xdo.mybluemix.net/
- use
/spa
path for Single Page Application in AngularJS - use
/
path for Rails Application
- Ruby
- Sinatra - API Server
- Rails - Frontend API Handler
- her - ORM
- gems used
sinatra
andsinatra-contrib
mongoid
- An ODM for MongoDBher
- A Restful Object Request mapperfaraday_middleware
thin
- AngularJS
- Bootstrap and jQuery
- MongoDB
- User can add ToDo Task
- Mark task as done
- Edit task on double click of task description
- Search task
- Install gems using
gem install sinatra sinatra-contrib mongoid her faraday_middleware
- For Sinatra API server
- go to
xdo-sinatra
usingcd cdo-sinatra
- run
xdo.rb
usingruby xdo.rb
orrackup
- go to
- For Rails server
- go to
xdo-rails
in different terminal usingcd xdo-rails
- do a
bundle install
to make sure all the dependencies installed - run
rails server
- go to
- Start Mongodb server using
mongod
on another terminal - Now open rails server
localhost:3000
on browser.