Git Product home page Git Product logo

implemented-ajax-style-request-to-fetch-the-data-from-mongodb-using-rails-and-show-it-on-browser's Introduction

#CSE5335 #Alok Kumar #Student Id: 1000996623

Step 1: Installed the Ubuntu on VMplayer 7. Step 2: Configured Mongo Mapper with Ruby on Rails. Step 3: Uploaded the data On MongoDB. Step 4: Used jQuery at the frond side to display the data to the browser. Step 5: Made 100 Ajax style request to server side framework. Step 6: Set time interval of 0.5 sec using setInterval() method. Step 7: Each request loaded single record from the database. Step 8: Modified web page to display the datafrom each record.

Step 9: Bonus Part: 1. Added animation to display the newly arriving data. 2. Displayed only 20 records at a time by using the .limit(2) method on MongoDb collection.

Answer to question 4:

  1. Configuration of MongoDB with rails was easy because i found the documentation on MOngoDB which explained clearly how to configure mongo with rails.
  2. Adding animation was difficult for me because i did not know how to add the animation on newly arrived data. So, this take extra time for me 3)If I would have to use this technology proffesionaly, the version problem in ruby will be my biggest concern because sometime mongo doesn't work in rails 4.

References: https://github.com/mongodb/mongo-ruby-driver/wiki/Tutorial http://stackoverflow.com/questions/14754619/jquery-ajax-success-callback-function-definition http://two.mongoid.org/docs/querying/criteria.html#any_of http://stackoverflow.com/questions/15309145/how-to-or-in-a-ruby-on-rails-mongodb-query http://technicaldebt.com/getting-started-with-ruby/mongomapper-ith-rails-quickstart/

implemented-ajax-style-request-to-fetch-the-data-from-mongodb-using-rails-and-show-it-on-browser's People

Contributors

alok1312 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.