What’s the expressjs for?

Asked

Viewed 7,482 times

0

What is it, what is it for and how does express.js work? It is recommended to use it together with Angularjs in a SPA app?

  • 1

    Hello André, welcome to Sopt. In your question you ask several questions, which ends up leaving the subject a little wide. I would suggest you to [Edit] your question and put some explanation. If you really have doubts about what is the Express.JS, put what "thinks" it is, which will be of best help.

1 answer

9


Express.js is a Node framework that can be compared to Laravel for PHP, it creates route abstractions, middleware and many other functions to facilitate the creation of both API’s and SPA’s.

A cool example of using it is exposing a simple get API that can be done with a few clicks in less than 10 minutes.

Now, don’t confuse Angular and Express, Angular.js is a library front-end while Express is a framework Back-end, that is, while the angular is concerned to facilitate the life of the programmer with regard to data processing and display, the Express is aimed at creating and obtaining the data from your server. Regardless of the language that will use them.

I’d say they are complementary, but not equal, nor can they be compared.

On your second question, it is not only indicated, but it is highly recommended to use Express.js with Angular.js, as well as any other framework or front-end library (such as React.js or Polymer). Note that Express, as a Back-End framework, can be used with any language that consumes your data.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.