Answer the question
In order to leave comments, you need to log in
Do you have a best practices example of a simple CRUD OOP-style Node.js + Express.js application with all the ES6 features?
We need an example of a reference application, without the use of heavyweight frameworks.
Answer the question
In order to leave comments, you need to log in
The principles are the same everywhere. Generate an initial workpiece with an express generator. Add controllers, models, maybe even services and helpers. And vuya-la, here is the application itself for best practice.
Today, a post was published on Habré https://habrahabr.ru/post/309466/
Maybe not exactly the same, but in this direction.
You can hardly find it on express and ES6, express is a slightly outdated framework, no one will cut best practices on es6 for it, only legacy on 5, if you are interested in ES6, you need to look towards koa.js. But unfortunately, koa will not give what express has out of the box (templates, routing)
github.com/nauchcrug/backend
The most common CRUD, in deep development, unfortunately there is no time for development and everything is worth
Working with the database through the pg-promise library, data validation through JSON Schema and Ajv Frontend
- AdminLTE template, jQuery
Implemented in Node6 ES6 almost completely, only Object spread and import/export are missing
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question