Node.js multi-platform project structure

This really confuses setting up the best project structure for node.js. I am developing a node.js application that runs on browser, mobile and desktop. This application has many modules, such as billing, support, toolbar, etc.

I started with the express.js MVC template, later Sails.js looked very attractive. Then came across MEAN Stack and finally landed on Microservices Seneca.js

Micro-Services looks the way I need it, but I see that Sails.js do not support it. I wanted to use Aerospike NoSQL, but the orm waterline does not support it right now.

So, what is the solution to the project structure you use for node.js that works in browser, mobile and desktop?

+6
source share
1 answer

This is a very subjective question. But Meteor is what you are looking for. It supports desktop computer, browser, mobile phone, etc. And encourages NoSQL to support MongoDB.

As a reference, I personally tried each of the frameworks you tested (Sails, MEAN, etc.), and eventually Meteor became my preferred.

Regarding the structure of the project, you can read more about the various tutorials, books and YouTube . The learning curve is steep, but the community behind the project is quite vibrant and useful.

0
source

Source: https://habr.com/ru/post/986405/


All Articles