Hacker News new | ask | show | jobs
by tga 1929 days ago
The power of Django (imho) is in how you can define data models only once, and out of them get excellent database migrations, database operations, form validation, API serialization/deserialization, and an admin interface. Is there anything in Node.js land that comes even close to this level of integration?

Last time I worked on a Node app, I had to define the data model once for the ORM (Objection), again when writing migrations by hand (Knex), again when defining the input validation schema (Joi), maybe again when defining data objects, and I didn't even have an admin.

For me, the language is secondary -- there were times when I would have liked to have a Django.js, so I could share code (validation and calculation modules) between backend and frontend.

2 comments

I use mongoose and mongodb mostly with node, because the technologies marry so well. I generally ETL over to pg for heavy analytics workloads.
This is such a great comment, thanks.