MEN Stack Error Handling
About
This module is designed to equip you with a comprehensive understanding of error handling in Express applications. Focused on practical techniques, it guides you through basic concepts such as developing error pages and utilizing flash messages. You’ll also explore advanced topics like the use of HTTP status codes for precise error communication and resolving port conflicts. Designed for learners at various levels, this module leaves you well equipped to build robust, user-friendly Express applications with stable and reliable functionality.
Content
| Lesson | Skills |
|---|---|
| Setup | Setting up the development environment. |
| Concepts | Understanding the purpose and importance of error handling in an application. |
| Server-Side Error Handling | Understanding the role of server side error handling. |
| Client-Side Error Handling | Understanding the benefit of preempting errors on the client. |
| Error Pages | Implementing error pages in a web application. |
| Flash Messages | Implementing flash messages in Express applications. |
| HTTP Status Codes | Understanding how to use HTTP status codes for effective error handling. |
| Handling Port Conflicts | Handling port conflicts in an Express application. |
References
Internal
Prerequisites
- Intro to Node
- Intro to Express
- Intro to Databases
- Environment Variables
- Intro to Mongoose
- MEN Stack - Session Auth
Starter code
This lecture uses the MEN Stack Auth Template as starter code. Doing so allows us to have a connection established to our MongoDB Atlas, add functioning auth for our user model, and install some of the packages we will need for this lesson.
Course landing pages
Resources
Find a 👾 bug 👾 or have suggestions? Let us know!