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

3rd Oct 2020, 3:30 AM
Aditya Shrivastava
Aditya Shrivastava - avatar
4 Answers
+ 1
Aditya Shrivastava Nothing else is coming to my mind :P
3rd Oct 2020, 4:08 AM
maf
maf - avatar
+ 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?
3rd Oct 2020, 3:47 AM
maf
maf - avatar
0
Whenever it comes plz tell me also
3rd Oct 2020, 4:25 AM
Aditya Shrivastava
Aditya Shrivastava - avatar
- 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
3rd Oct 2020, 3:49 AM
Aditya Shrivastava
Aditya Shrivastava - avatar