0
How to do more with node js expect serving files in a website . What more can be done in the backend of the website using nodejs
4 Respostas
+ 1
Aditya Shrivastava Nothing else is coming to my mind :P
+ 3
You can interact with MongoDB database with nodejs,
Using express framework, i'll give you an example of retrieving some documents from the database,
app.get("/get_users", (req, res) => {
User.find().then(users => {
res.json({users})
})
})
So here i'm sending an array of users to the frontend if it hits this url "/get_users". You get the idea, right?
0
Whenever it comes plz tell me also
- 2
Actually i know that also see i know how to connect with mongo db , make requests and build realtime time app. Anything else which i am left to learn