Rails backend with ionic 2


#1

Hi all,

I am new in ionic and I have some questions : can I implement a rails backend with ionic 2 ? Are there good guides or tutorials that I can follow ?

Thanks in advance,

Mattia.


#2

These would be two different parts. The Rails backend would need to be a different part of your app, while the ionic app would just be a client that talk to the rails backend.


#3

Good morning,

Do I have to create two different project folder ? Or do i have to create one folder , and into this create the ionic and rails project ?


#4

There aren’t useful guides about this. Can anyone help me ?
Thanks in advance.

Mattia.


#5

The backend is completely separate from the app so it’s irrelevant whether the client app is Ionic 2 or anything else. The client just needs to know how to interact with it.

There are plenty of decent guides for creating a RESTful API (backend) and interacting with it from an app (frontend)

Backend: https://www.airpair.com/ruby-on-rails/posts/building-a-restful-api-in-a-rails-application
Frontend: http://blog.ionic.io/10-minutes-with-ionic-2-calling-an-api/


#6

Thanks so much !!!

Mattia .