Skip to content

SanjaRogovic/nodejs-with-mongoose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published