Course

REST API with NodeJs by Academind

4.8

(5)

4h14m of course on video.

Quality content and selected for your learning.

Certificate

Download your digital certificate of course completion after watching all course videos.

Exercises to train your knowledge

Many of the courses available have exercises to help with learning.

Free lifetime access

This course is free today and always will be, from start to finish you will pay nothing.

Teacher

Academind

There's always something to learn! We (Max and Manuel) create courses and tutorials that teach you everything related to web development. No matter if it is programming languages like JavaScript, runtimes like NodeJS or popular frameworks like ReactJS, Angular or VueJS (and much more!). We got you covered. :-)

Ver sobre

Course content preview

What is a RESTful API? | Creating a REST API with Node.js

0h14m

Planning

0h14m

Adding More Routes to the API | Creating a REST API with Node.js

0h17m

Handling Errors

0h10m

Parsing the Body

0h15m

MongoDB and Mongoose | Creating a REST API with Node.js

0h36m

Mongoose Validation | Creating a REST API with Node.js

0h18m

Managing Orders with Mongoose | Creating a REST API with Node.js

0h22m

Populating Queries with Mongoose | Creating a REST API with Node.js

0h03m

Uploading an Image | Creating a REST API with Node.js

0h21m

Adding User Signup | Creating a REST API with Node.js

0h28m

Adding User Login

0h14m

JWT Route Protection | Creating a REST API with Node.js

0h16m

Adding Controllers | Creating a REST API with Node.js

0h19m

Watch the 1st video of the course

Sign in or Register to access the course.

Do not worry, it is free!

Share

Evaluate course

Go to certificates

Report a problem

Course content

0h14m

What is a RESTful API? | Creating a REST API with Node.js

Let's create a RESTful API with Node.js. To start with this series, let's first of all find out what a RESTful API actually is.
Join the full Node.js course: https://acad.link/nodejs (includes REST)
Also learn more about MongoDB: https://acad.link/mongodb

Check the full Node REST series: https://academind.com/learn/node-js/building-a-restful-api-with/

Check out all our other courses: https://academind.com/learn/our-courses

----------

• Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content

0h14m

Planning

Time to dive into it! Let's start building our Node RESTful API. Well actually, let's quickly plan it before we start.
Join the full Node.js course: https://acad.link/nodejs
Check out all our other courses: https://academind.com/learn/our-courses

----------

• Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content

0h17m

Adding More Routes to the API | Creating a REST API with Node.js

Our RESTful API needs more Routes! Learn how to add more routes to our Node Express project!
Join the full Node.js course: https://acad.link/nodejs
Check out all our other courses: https://academind.com/learn/our-courses

----------

Full Playlist: https://academind.com/learn/node-js/building-a-restful-api-with/
Source Code: https://academind.com/learn/node-js/building-a-restful-api-with/adding-more-routes-to-the-api/

----------

• Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content

0h10m

Handling Errors

Things can go wrong in our Node RESTful API. Time to add some proper error handling. And let's also improve our workflow, so that we don't constantly have to restart the server.

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

Nodemon: https://github.com/remy/nodemon
Source Code: https://github.com/academind/node-restful-api-tutorial/tree/03-improve-setup-error-handling

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!

0h15m

Parsing the Body

Let's parse our request body, so that our RESTful API can receive and use data. And handle CORS to allow other clients to access our API.
Join the full Node.js course: https://acad.link/nodejs
Check out all our other courses: https://academind.com/learn/our-courses

----------

Full Playlist: https://academind.com/learn/node-js/building-a-restful-api-with/
Finished Code: https://academind.com/learn/node-js/building-a-restful-api-with/parsing-the-body-handling-cors/

----------

• Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content

0h36m

MongoDB and Mongoose | Creating a REST API with Node.js

Time to not only handle our data in the endpoints (and then let the data go into the void) but to actually add a database: MongoDB!
Join the full MongoDB course: https://acad.link/mongodb
Exclusive discount also available for our course: https://acad.link/nodejs

Dive into the full Node.js REST series: https://academind.com/learn/node-js/building-a-restful-api-with/

Check out all our other courses: https://academind.com/learn/our-courses

----------

MongoDB Docs: https://www.mongodb.com/
Mongoose Docs: http://mongoosejs.com/docs/guide.html
Source Code: https://github.com/academind/node-restful-api-tutorial/tree/05-add-mongodb-and-mongoose

----------

• Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content

0h18m

Mongoose Validation | Creating a REST API with Node.js

In the last video of this series, we added MongoDB and connected our product routes via Mongoose. Let's now also ensure that only the right data makes it into the database and let's also improve our Http responses.

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

Source Code: https://github.com/academind/node-restful-api-tutorial/tree/06-validation-and-better-responses/api/routes

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!

0h22m

Managing Orders with Mongoose | Creating a REST API with Node.js

We worked on the products, we added MongoDB and Mongoose - time to now also connect our order routes to the database.

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

Source Code: https://github.com/academind/node-restful-api-tutorial/tree/07-orders-and-mongodb/api/routes

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!

0h03m

Populating Queries with Mongoose | Creating a REST API with Node.js

Sometimes, you have related documents in your MongoDB. Learn how you can populate them with data of each other via Mongoose.

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

populate() in the Mongoose Docs: http://mongoosejs.com/docs/populate.html
Source Code: https://github.com/academind/node-restful-api-tutorial/tree/08-populate-orders-with-products/api/routes

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!

0h21m

Uploading an Image | Creating a REST API with Node.js

We're already storing a lot of data on our database but what about files? Let's take a closer look!
Join the full Node.js course: https://acad.link/nodejs
Check out all our other courses: https://academind.com/learn/our-courses

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

More about Multer: https://github.com/expressjs/multer
Parsing Binary data in Node.js: https://stackoverflow.com/questions/16598973/uploading-binary-file-on-node-js
Source Code: https://github.com/academind/node-restful-api-tutorial/tree/09-image-upload

----------

• Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content

0h28m

Adding User Signup | Creating a REST API with Node.js

Time to add authentication to the RESTful API. Let's start with user signup.

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

Source Code: https://github.com/academind/node-restful-api-tutorial/tree/10-auth-signup
More about JWT: https://jwt.io/
bcrypt Github Repo: https://github.com/kelektiv/node.bcrypt.js

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!

0h14m

Adding User Login

Users are able to sign up, it's now time to add Login functionality to the Node.js RESTful API. We'll have to sign some JWT for that...

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

Source Code: https://github.com/academind/node-restful-api-tutorial/tree/11-auth-signin
More about JWT: https://jwt.io
node-jsonwebtoken Github Repo: https://github.com/auth0/node-jsonwebtoken
bcrypt Github Repo: https://github.com/kelektiv/node.bcrypt.js

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!

0h16m

JWT Route Protection | Creating a REST API with Node.js

Users can sign up and sign in - let's now use that to ensure that certain routes are only accessible by authenticated users. Time for more JWT action in our Node.js REST API.

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

Source Code: https://github.com/academind/node-restful-api-tutorial/tree/12-auth-protect-routes

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!

0h19m

Adding Controllers | Creating a REST API with Node.js

Thus far, all our logic resides in the route files. Let's split it up and add some controllers to the Node RESTful API!

----------

Learn Node.js in our comprehensive 30h course: https://acad.link/nodejs

Source Code: https://github.com/academind/node-restful-api-tutorial/tree/13-controllers

----------

• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!

See you in the videos!