Answer the question
In order to leave comments, you need to log in
How to write a web service?
Hello. There is a task: a single-page application that will load the necessary data via ajax and display them. There is a lot of data in the database, the service must be able to process them quickly. Then it is planned to add OAuth, it is desirable that there are ready-made solutions for this.
I am completely unfamiliar with web development. On what to write such server? While I'm considering python, ruby, node.js. PHP is not very desirable. As for frameworks for these languages, there are no ideas at all.
UPD1: Don't offer C#. Not satisfied with the cost of hosting for him.
UPD2: Thanks everyone. Chose node.js. How did - wrote here - lsreg.ru/sozdanie-prostogo-servisa-na-node-js
Answer the question
In order to leave comments, you need to log in
It depends on what you want from him in the future.
You need to quickly get the RESTful API out of the box - Node.js + Sails.
You need to process requests quickly and this is critical - pure minimalism (possibly with express, okay :)
Why don't you want to use php? This language has a bad reputation; due to the fact that it has a low entry threshold, a lot of schoolchildren write "shit code". But good developers do worthwhile things, almost all great internet services have a backend written in php. Especially since version 5.3, it has become prettier, and the latest versions have also added a lot of speed.
Of course, I understand that node.js for single-page applications is mainstream, but given the fact that there is no experience in web development, I would recommend php + javascript. Moreover, the approach is classical, where php gives an already formed html piece, or a newer one, where php gives json, and the client spins it as he wants on the same angularjs.
I have a one-page bookmarking service on the Internet written in php + javascript (jQuery) that works like lightning and no problems.
This is a purely holistic question. I would choose Node.js.
You need to write on what your friends, colleagues or mentor (if you can find one) know.
Just from scratch, just based on the answer on the Toaster, you will not choose the ideal language for you. Your problem is not unique, so that there is one solution for it. Read about server languages PHP, Python, Ruby, JS. Try to make a small program on them to evaluate how you like the language itself. In any case, the Ajax client part will have to be done in JS, so it may be easier for you to make the server part in Node.js.
if a one-pager, then sinatra framework is what you need, the simplicity of the framework and ruby will play into your favor
The answer is quite obvious.
On what you will do it qualitatively, what you know well and will be able to support / expand.
Look towards Jersey . Since it's java - get a good ecosystem that can solve any problem.
If you want something simpler, RoR can be used purely for REST as in general any MVC framework (Django, Laravel, YII, etc.)
Too bad you don't want ASP.NET Web Api. The high cost of wine hosting is no longer true. +200 rubles per month for a license to the total cost of hosting, I think this is a penny even for a private person.
In the case of Python, I can advise www.django-rest-framework.org - you don't need to write a lot of code, especially in simple cases.
Well, access to a bunch of Python libraries.
OAuth via psa.matiasaguirre.net
I used to write on pearl, but from Java I clung to it :-) I drove data through xml, and it all worked for about three years. On the pearl, since they refused to raise the reality on the "executing devices". The executing devices were 60 pieces of Linux routers from one provider. And the server is a billing system in Java.
I used something from cpan on pearl, on java jakarta axis.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question