Ruby and Backbone.js - ruby-on-rails

I am looking to write a web application using RoR for the backend and Backbone for the front-end. The Web app will have to list all the member documents.
Does anyone have any experience with running RoR and Backbone.js? How can we call REST API of RoR using the Backbone.js.

Related

Rails Frontend, Backend, and API

Does your Rails app have to be API-Only to be able to use the API generator? I want to create my fronted and backend using Ruby on Rails. Then build a mobile using the API.
Does your Rails app have to be API-Only to be able to use the API
generator?
No, it can be a normal web application and you can build an API alongside it. The term API-only came from Rails 5 where it introduced a way to generate a Rails API-only applications that are different from normal web applications. For more information, have a look into these guides
You can access your API throught a different route, as in www.myapp.com/api/request, and access your Rails application throught www.myapp.com/request, for example

Integrated AngularJS + Rails or separated Angular + Rails API-only (microservices architecture)?

As I understand it, there are two common approaches to running AngularJS (or ReactJS, VueJS etc. same idea...).
Integrate the AngularJS front-end into a Rails application (as in this tutorial)
Run an AngularJS application which communicates with a completely separate Rails API-only back-end a.k.a: microservices architecture (as in this tutorial)
Which approach would be most appropriate from a Software as a Service stand-point?
You can adopt the second approach.
It's more suitable, simple and convenient.
Also it will reduce the complexities which you will face when you will integrate AngularJs as front-end in your Rails Application. Also you can test the application easily

Can I host the front-end of a web application on a product like Parse, and host the applications backend/API on a platform like heroku?

I am building a web application (crowdfunding site). I have started building the REST backend using ruby on rails.
I plan on deploying the backend to heroku.
I then plan on developing the front-end using some js framework like Backbone or Angular, html, and css.
My question is, can I host the front-end using a product like Parse? Such that the front-end has access to the exposed api endpoints hosted on heroku.
If not, what are my front-end hosting alternatives?
Will I need to reconsider using heroku for the API/backend?
This is my first time building a web application, so I would appreciate details and other resources. Thanks!

Real time application with Brunch, Node.js, Socket.io, MySQL, Rails and Ember.js

I'm trying to use Brunch with Rails and Ember.js with Separation of Frontend and Backend then use Node.js and Socket.io for real time updates.
I think this tutorial Adding Real-Time to Rails With Socket.IO, Node.js and Backbone.js
is useful and explains how Rails, Socket.io, Node.js and Backbone.js can be implemented but how would we go about adding Brunch and Ember.js with database integration?
Do we have any suggestions? or are there good tutorial/example out there that we could make use of?

Web Service and Endpoints in Rails

I am new to Rails and I am creating a RoR web application, their is a mobile component that will connect (CRUD) to the default db I am creating. I need some guidance in writing the web service component and what valid endpoints should look like in this type of app. Any direction would be helpful, thanks.
Ruby on Rails provides restful web service development out of the box, i.e. any app developed on RoR is by nature a RESTful web service. To answer the specifics of your question, consider checking out this SO thread

Resources