DEV Community

Discussion on: Stop repeating work and Start coding your express API 🚀

Collapse
 
ssimontis profile image
Scott Simontis

I feel like Express is a framework for writing web frameworks. It is so low-level and every method becomes so repetitive, that unless you or your company have a solid library built on top of it already, it is one of the most unproductive solutions for a server.

For really simple CRUD apps, I think it would be cool to see a database schema transformed into a REST API. Not applicable most of the time, but totally automated when required.

Collapse
 
uptotec profile image
Mahmoud Ashraf Mahmoud

I'm pretty new to node.js with less that a full year of experience. and we I get started I found express is the most used library with node.js when it comes to building REST API's. so I started using it and I did't expose to any other alternative. and I guess Google Firebase implements the idea that you are taking about, but it has a lot of limitations. I see it with express like you trade the simplicity for the more functionalities you get over something like FireBase.

Collapse
 
aghost7 profile image
Jonathan Boudreau

Yea, there are more complete frameworks like eggjs and nest.

Collapse
 
joserocha3 profile image
Pablo Rocha • Edited

Hasura.io does almost that. Creates a graphql API from your postgres schema.

Collapse
 
stagfoo profile image
Alex King

I think there are some solutions that do just that if you look around, you can also try json-server for really simple apps