mercredi 7 septembre 2016

What are the recommended patterns and frameworks for using node.js

As a background, I am currently transitioning from c# .net to node.js. I have been developing with javascript for over 15 years, so I have an understanding of the language. I am trying to be cuatious in picking the right node.js tools to use. I am currently tasked with moving a social network from the .net stack to the mean stack. With the .net stack, for instance, I would use rest api(web api), angularjs with razor views for templating the html, etc. I noticed there are several different tools for doing this in node.js. I spoke with a friend who is a mean developer who suggested using express but I did not see a mvc framework built into express and I found the mvc framework very helpful for .net. I found some examples online for using mvc from "scratch" but it seems to make more sense to use a tool that performs this instead of reinventing the wheel. I am also moving from a sql to nosql-based architecture. I have read several things online indicating mongoose would be a good way to go here. I would like to know what are recommended packages that are comparable to web api(rest) and razor views, with performance and light-weight in mind? Also, coming from a .net background I used alot of design patterns, especially repository pattern and service layer pattern and would like to know would these be ideal for node.js or are there other patterns that are better suited for coding in node.js? Any suggestions or advice would be greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire