Description
In this course, you will :
- demonstrates how to use these technologies to create a realistic and robust website.
- Learn how to create a basic application in minutes, how to transform HTML into dynamic pages, how to use template engines to modularize code, how to add routing and business logic, how to handle errors, store form data, and how to create API endpoints for single-page applications.
- This course will help you learn bits and pieces about Express.js as well as improve your overall knowledge of how to work effectively with Node.js.
Syllabus :
1. Building a Basic Express Application
- Create an Express server in three minutes
- Building from a HTML page or template
- Serving HTML pages and static content
- Setting up ESLint and Prettier
- Setting up nodemon
2. Template Engines
- Template engines and Express
- Getting to know the EJS template engine
- Rendering the index page with EJS
3. Express Routes and Middleware
- Express middleware and routes
- Modular routes with express.Router
- Creating routes for all subpages
- Add business logic
- Add a session management middleware
4. Professional Templating with Express
- Create a site-wide layout
- Using partials with EJS
- Template variables in more detail
- Looping through lists in templates
- Creating a list page
- Using parameter routes
5. Handling Errors Gracefully
- How to handle errors in express
- Creating an error page
- Populating the error page
6. Handling Form Data
- Creating a form template
- Handling POST requests
- Validating and sanitizing user input
- Storing data
7. Creating APIs with Express
- A little intro to REST APIs
- Creating and testing an API endpoint
- Add client side JavaScript
- Updating the page from REST