As the title says, I am a newbie in backend, and now I want to learn node.js to build a simple backend myself. You only need to be able to write a simple API to access data.
It is known that there are frameworks like express and egg. So for a node novice, which node framework is easier to learn and can quickly realize my needs?
Please give me some advice, thank you~
It is more recommended to use express to play with it at first, and then imitate a similar wheel without express.
Then after you are familiar with all aspects, you can use express or koa to build a more complete one.
It would be better to use the egg last, for learning.
When I saw someone complaining about EGG, I couldn’t help but correct its name. Of course, I still recommend you to learn express and node native API first
Those who say EGG is unreliable, have you ever actually used node to do server-side backend projects?
Do you know how cumbersome it is to create some special tasks when node deploys multi-threading (cluster)?
Do you know how many repetitive tasks EGG has simplified? Do you know how many pitfalls there are to overcome when developing enterprise-level back-end services using express? (To be honest, there is no plug-in integration between express and koa, they are just toys)
Anyway, I think EGG is a reliable enterprise-level framework, and I am ready to use it in depth in the next project!
Those who have really used node to develop back-end services will definitely be pleasantly surprised when they see EGG. It finally integrates the pitfalls I have stepped on and the things I have always wanted to integrate!
. . . Do you have a web working mindset? . . If not, first understand the basic process of web work.
Learning express is relatively simple. Eggjs requires a lot of things that I think I want to do (PS: I haven’t played it much).
Let’s learn about some basic node API files, streams, events, and networks
I also think express is easy to use. It’s easy to use and you’ll be able to master it in a while. The logic is also easy to understand. I changed all my work websites to express and use ng at the front desk.
Learn Express, egg is a new framework from Alibaba. I think it is unreliable for individuals to learn this, because you don’t know how many pitfalls you have to step into. There is no community and no place to find answers when you encounter problems.