What is the use of using Sinatra instead of RoR if I only need a database and API

I need to create a web service for a mobile game in order to manage the state of multiplayer games. I need a database and a RESTful API to access it. I am very familiar with Ruby On Rails and thought about using this, since I can quickly build DB and API. However, since RoR is the basis for creating web pages, and I actually do not create any web pages, this naturally seems to be the wrong technology, even if it works. Thus, I am considering using Ruby on Sinatra, but I have never used it before, and I will have to kill some time while studying it. For you, Ruby Guru, is there an advantage to using Sinatra or a lack of using RoR for what I'm trying to accomplish?

Thank you very much for your wisdom!

+5
source share
2 answers

You know Rails, you don't know Sinatra. Personally, I prefer the latter for things like creating APIs, but there is nothing stopping you from doing this in Rails, and nothing is happening to it. If you do not want this to be seen as a learning opportunity to enter Sinatra, I would say stick with Rails. Here are some links that may be useful for btw:

+5
source

, API. , , (,...). RESTfulness , Sinatra . , , , , . . Sinatra Readme, .

0

All Articles