MERN Tutorial: Ep 3 - Setting Up Express

preview_player
Показать описание
Welcome back to our MERN Full Stack Web Dev course! In this episode, we’ll mount our Express middleware and start up the server that Express and NodeJS are running.

Steps Covered:
Explaining how require works in Node
Launching Express server via listen command

Key Topics:
Full Stack Development
MongoDB Configuration
Express Configuration
Express Setup

🔗 Resources:

🔔 Don’t forget to like, comment, and subscribe for more full stack development tutorials! Hit the bell icon to get notified when we upload new videos.

#FullStackDevelopment #ReactJS #Vite #MongoDB #NodeJS #WebDevelopment #CodingTutorial #JavaScript #mernstack

Timestamps:
2:28 - Starting server
Рекомендации по теме
Комментарии
Автор

why not use import statements in backend aswell?

aryaanand
Автор

When I do a console.log in connect.js as:

module.exports = {
connectToServer: async () => {
database = await client.db('BlogData')
console.log(database)
},
getDb: () => {
return database
},
}

I notice this -
namespace: MongoDBNamespace { db: 'BlogData', collection: undefined }
As a result my posts are not working.

kaustubhdutta