Mô tả

This is a project based course where we build an extensive, in-depth backend API for DevCamper, a bootcamp directory API. We will start from scratch and end up with a professional deployed API with documentation. We will dive deep into Node, Express and MongoDB. Here is some of what you will learn in this course and project...


  • HTTP Essentials

  • Postman Client

  • RESTful APIs

  • Express Framework

  • Routing & Controller Methods

  • MongoDB Atlas & Compass

  • Mongoose ODM

  • Advanced Query (Pagination, filter, etc)

  • Models & Relationships

  • Middleware (Express & Mongoose)

  • MongoDB Geospatial Index / GeoJSON

  • Geocoding

  • Custom Error Handling

  • User Roles & Permissions

  • Aggregation

  • Photo Upload

  • Authentication With JWT & Cookies

  • Emailing Password Reset Tokens

  • Custom Database Seeder Using JSON Files

  • Password & Token Hashing

  • Security: NoSQL Injection, XSS, etc

  • Creating Documentation

  • Deployment With PM2, NGINX, SSL

Web development is changing. We used to render all of our views and templates on the server, but since the rise of frontend frameworks like React, Angular and Vue, we are now splitting projects up into backend and frontend, where the backend is doing all of the database interaction and serving JSON and the frontend is fetching that data and creating the user interface to interact with. This course will teach you the entire backend side of things so that you can build extensive APIs and then use whatever you want on the frontend.

We will do a lot more than just build a simple CRUD REST API like many other Node.js and Express tutorials. We will be implementing authentication, roles and permissions, password reset tokens, email functionality, geocoding and much more. This course teaches what it's like to be a real backend engineer.

Bạn sẽ học được gì

Real World Backend RESTful API For Bootcamp Directory App

HTTP Fundamentals (Req/Res Cycle, Status Codes, etc)

Advanced Mongoose Queries

JWT/Cookie Authentication

Express & Mongoose Middleware (Geocoding, Auth, Error Handling, etc)

API Security (NoSQL injection, XSS protection, Rate Limiting)

API Documentation & Deployment

Yêu cầu

  • Modern JavaScript (ES6)
  • Basic programming principles
  • Basic knowledge of Node helps

Nội dung khoá học

11 sections

Welcome To The Course

4 lectures
Course Introduction
03:35
A Look At The Project
06:37
Optional Node.js Beginner Crash Course
00:19
Environment Setup
05:42

HTTP Intro - Headers, Body, Status Codes, etc

6 lectures
HTTP & the Node Http Module
10:03
Installing Nodemon
03:55
Responding With Data
08:03
HTTP Status Codes
07:39
Sending Data To The Server
05:34
HTTP Methods & RESTful APIs
12:44

Starting Our DevCamper Project

7 lectures
Project Specs & Resources
06:46
Basic Express Server, dotenv & Git
10:09
Creating Routes & Responses In Express
10:12
Using The Express Router
05:00
Creating Controller Methods
09:57
Intro To Middleware
10:40
Postman Environment & Collections
08:51

Getting Started With MongoDB & Bootcamps Resource

7 lectures
MongoDB Atlas & Compass Setup
08:55
Connecting To The Database With Mongoose
11:57
Colors In The Console
02:48
Creating Our First Model
15:22
Create Bootcamp - POST
10:31
Fetching Bootcamps - GET
05:29
Updating & Deleting Bootcamps - PUT & DELETE
08:22

Custom Error Handling & Mongoose Middleware

7 lectures
Error Handler Middleware
05:43
Custom ErrorResponse Class
05:33
Mongoose Error Handling [1]
07:24
Mongoose Error Handling [2]
09:12
Async/Await Middleware
06:45
Mongoose Middleware & Slugify
07:51
GeoJSON Location & Geocoder Hook - MapQuest API
15:38

Mongoose Advanced Querying & Relationships

13 lectures
Database Seeder For Bootcamps
10:22
Geospatial Query - Get Bootcamps Within Radius
14:07
Advanced Filtering
12:36
Select & Sorting
12:48
Adding Pagination
11:30
Course Model & Seeding
09:02
Course Routes & Controller
12:20
Populate, Virtuals & Cascade Delete
11:46
Single Course & Add Course
11:56
Update & Delete Course
07:38
Aggregate - Calculating The Average Course Cost
16:14
Photo Upload For Bootcamp
23:12
Advanced Results Middleware
12:14

Authentication, Users & Permissions - Part 1

8 lectures
User Model
11:34
User Register & Encrypting Passwords
09:54
Sign & Get JSON Web Token
09:09
User Login
12:39
Sending JWT In a Cookie
09:55
Auth Protect Middleware
16:46
Storing The Token In Postman
05:18
Role Authorization
07:07

Authentication, Users & Permissions - Part 2

8 lectures
Bootcamp & User Relationship
10:41
Bootcamp Ownership
08:32
Course Ownership
07:24
Forgot Password - Generate Token
11:34
Forgot Password - Send Email
16:16
Reset Password
09:41
Update User Details
10:43
Admin Users CRUD
18:37

Bootcamp Reviews & Ratings

5 lectures
Review Model & Get Reviews
10:51
Get Single Review & Update Seeder
09:02
Add Review For Bootcamp
10:27
Aggregate - Calculate Average Rating
07:29
Update & Delete Reviews
12:51

API Security

4 lectures
Logout To Clear Token Cookie
07:35
Prevent NoSQL Injection & Sanitize Data
05:18
XSS Protection & Security Headers
07:03
Rate Limiting, HPP & CORS
07:57

Documentation & Deploy

7 lectures
Documentation With Postman & Docgen
12:12
Digital Ocean Droplet & Server Log In
05:50
Prepare & Push To Github
06:23
Clone Repo On Server
08:41
PM2 Process Manager Setup
05:44
NGINX Reverse Proxy Setup
05:54
Domain, SSL & Wrap Up
11:38

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.