This lesson is fun! You’ll be setting up several views, and you’ll start to see your Application come together. We’ll finally get to see our data showing up in the browser! This is a long lesson that is broken up into several sub-lessons, so make sure you click through to see them all.
By the end of this lesson, you should be able to do the following:
- Describe asynchronous functions.
- Manage asynchronous operations in controller functions.
- Manage flow control when using asynchronous operations.
- Create and extend templates.
- Write templates using Pug.
- Pass information to a template from your view.
- Implement read-only pages.
- Describe how routes work.
- Describe how views and models work in practice.
- Query database using models.
- Describe date handling using luxon.
- Let’s get back to Express tutorial on MDN.
This section contains questions for you to check your understanding of this lesson. If you’re having trouble answering the questions below on your own, review the material above to find the answer.
- Why do we use the async module?
- Why are async methods needed and what do they avoid?
- How do we run multiple asynchronous operations in parallel?
- How do we run multiple asynchronous operations in series?
- When do we use
- How do we nest elements and define attributes in Pug?
- What is a base template and how do we extend it?
- Why do we use luxon instead of the regular date format?
This section contains helpful links to related content. It isn’t required, so consider it supplemental.
- It looks like this lesson doesn’t have any additional resources yet. Help us expand this section by contributing to our curriculum.