SanjaRogovic / nodejs-with-mongoose

NodeJS + Express + MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodejs-with-mongoose

NodeJS + Express + MongoDB

Exercise 1

  • Create a folder named express_with_mongodb, navigate with your terminal in this folder and install mongoose with npm install mongoose.

  • Create a NodeJS Express server that listens on port 3000

  • Create a connection to a database test on MongoDB Atlas.

  • help: https://mongoosejs.com/ https://www.mongodb.com/atlas/database

    Exercise 2

  • Create a mongoose schema student to save a student with : name (string) first_name (string) email (string)

Then export the model from this schema - https://mongoosejs.com/docs/models.html -help: https://mongoosejs.com/docs/schematypes.html

Exercise 3

Exercise 4

Exercise 5

About

NodeJS + Express + MongoDB


Languages

Language:JavaScript 100.0%