In the following tutorials, you will learn how to create API endpoints to handle the CRUD Operations i.e. create
, read
, update
, and delete
in node.js.
Support my content
- Subscribe to my YouTube channel here
- Donate to my PayPal here
- My Twitter @chaoocharles
The following is the table of content:
- Creating an express server
- Connecting to MongoDB server
- Mongoose Model
- require() vs import statement
- Handling POST requests
- Testing API endpoints with postman
- Joi Data Validation
- Handling GET Requests
- Handling DELETE requests
- Handling PUT Requests
- Handling PATCH Requests
Here is the link to the playlist: playlist
Or you can use the videos below.
Creating an express server #1
Connecting to MongoDB server #2
Mongoose Model #3
require() vs import statement #4
Handling POST requests #5
Testing API endpoints with postman #6
Joi Data Validation #7
Handling GET Requests #8
Handling DELETE Requests #9
Handling PUT Requests #10
Handling PATCH Requests #11
Top comments (3)
hi everyone, please im facing a problem on Connecting to MongoDB server #2,
errror message 'MongoDB connection feilded: The
uri
parameter toopenUri()
must be a string, got "undefined". Make sure the first parameter tomongoose.connect()
ormongoose.createConnection()
is a string.'. thanksDid you resolve this?
Yes, thank you. I'm so grateful for your help