Server-side language for angularJS based applications more than others?

I am creating a web application (obviously) using angularJS and I want my application to communicate with a MySQL database. I was thinking about using php, but I have seen several different opinions (google) about the server side language I should choose to best bind my angular app. Some have said that Ruby is the best most reliable server-side language. Others said that it is better to choose node.js because in this case I get both my client and server written in the same language. The latter said that to go to php, because it is simply the most convenient. Before I start learning a new language (I have a basic understanding of php and some of its built-in features, including database related ones), I wanted to ask what general choice web developers are choosing, and if this is a "type unambiguous" question.Any opinion is highly appreciated.

+3


source to share


1 answer


I think that the only one who can better answer your question is yourself. You see, there is no "best" server side solution for working with AngularJS. I think the most important part will be choosing who you like the most, or who you want to study with as you think it might work for you in the future.

However, you might consider other things. For example, if you are planning to build a RESTful Api on the backend using MySQL as your database engine, you can use the angular service $resource

to communicate with it easily. Here is a link to the documentation:

$ resource

In this case, the backend can run on top of everything. Node has some great libraries for building custom REST Api, and rails is another good option. Here are a few links that might interest you:

HAPI - Web Application and Services Application Framework for NodeJS

Fast, laid-back, minimalist web framework for Node.js



Building a RESTful API in a Rails Application

The first two are NodeJS frameworks and the third is a very good tutorial on how to create a restfull API.

Regarding your comments about which server is the most reliable or fastest, it's actually not entirely clear. And there is no single structure or language that makes the best use of AngularJS features.

Just stick with what your gut says and you should be fine.

Hope this helps!

+3


source







All Articles