CPNT 262 Day 14 - Serving static files with Express
Trophy of the day
- Build a static Express server for one of your GH Pages sites.
1. HTTP and the request/response cycle
Materials
- Prep
- Takeaways
- Reference
2. HTTP servers with Node (yuck)
Materials
Key Takeaways
This will be the only time we use the http
module directly because it's a pain to use. BUT, we will use it to illustrate the request/response cycle.
3. HTTP servers with Express (yum!)
Materials
- Prep
- Express Docs
- Installing Express
- Hello World! with Express
- Serving static files in Express
- Video: How to build a REST API with Node js & Express by Programming with Mosh
- Takeaways:
- Gists:
4. Lab time
- Assignments
- Trophy of the day