This course uses a practical example of building an Express.js server with user authentication, database connectivity, and a frontend served from a static directory. You will learn to set up and configure a Node.js server using Express, handle various HTTP routes, apply middleware, implement error handling, and serve files or data from a backend.
Overview
Syllabus
- Unit 1: Handling Routes and HTTP Methods in Express.js
- Add a Welcome Route
- User Authentication Endpoint
- Modular Routing in Express.js
- Post New Snippet Route
- Fetch All Snippets Route
- Unit 2: Using Middleware in Express.js
- Add JSON Body Parsing Middleware
- Implement Request Logging Middleware
- Implement Robust Error Handling
- Protect Snippet Routes with Middleware
- Unit 3: Security Risks of HTTP
- Eavesdropping Log-in Information
- Creating a New File
- Experiencing Data Tampering
- Creating a new User Account