A
A
Alex Db2015-04-04 08:42:54
JavaScript
Alex Db, 2015-04-04 08:42:54

Javascript backend frameworks or vanilla js?

Hello!
There is a task to make an API service for a mobile application.
API task: work with the user (authorization, registration, verification), user session, work with the database (CRUD).
By server and db: Nodejs + NoSQL.
Prior to that, I had experience with PHP MVC frameworks. In JS, everything is a little different, asynchrony again. Need help choosing a framework or a set of libraries for working with databases in the style of ORM Models.
At the moment, I googled MVC frameworks:
-Sails.js
-locomotive.js
But there are also a huge number of libraries for solving specific problems.
I'm considering writing in pure js.
Dear node.js programmers, based on your experience, please recommend
application examples, articles. Just wondering, do you think it is necessary to use MVC frameworks?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur Shemsedinov, 2015-04-05
@alexdb

Look at this detailed answer of mine: Advise a framework for node?
Tools can be found here: nodeframework.com and here https://github.com/sindresorhus/awesome-nodejs and here https://github.com/vndmtrx/awesome-nodejs
For the database, I recommend MongoDB if your data is amorphous, complex or a frequently changing structure with these drivers : https://www.npmjs.com/package/mongodb npmjs.com/package/pgBut I do not like and do not recommend ORMs, usually they cause more problems, brakes and additional work than the benefits of their implementation. If you really want to, then there is mongoose for mongoose: mongoosejs.com is an ODM, an analogue of ORM for document bases, and for PG there are many options that are based on the same pg driver.
The MVC pattern was originally invented for graphical user interfaces, and there it still somehow justifies itself, and even then it’s crooked, read these articles of mine: habrahabr.ru/post/204958 and habrahabr.ru/post/117791 For a node, this generally unnatural. The GUI and the backend must be separated by a network API, on which mobile applications, browser applications, and window applications are hung, it doesn’t matter.

K
Konstantin Kitmanov, 2015-04-04
@k12th

If you only need an API, then look at loopback.io

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question