How to Node.js - Part 1
summary
Hands-on workshop follows the Linux Foundation course to set up Node properly using nvm/NVS for version switching and avoids installers, builds a static UI served with the npm tool g-serve, then adds a mock API: a plain Node http server (watch CORS and charset), converts CommonJS to ESM, and replaces it with Fastify + fluent.json.schema validation to implement GET and POST routes. Demos run on Node 18 (notes IPv6/localhost and Slowloris protection) and show curl tests, live edits, and that the mock server works.
AI-written summary · about
chapters (23)
- 0:00Introduction and setup
- 3:48Workshop overview
- 6:04Installing Node.js
- 8:32Node version management
- 12:20Course materials access
- 15:52Live debugging session
- 21:28Building a file server
- 28:28Lunch break
- 43:29API mocking introduction
- 50:10Creating a Node server
- 1:06:14CommonJS vs ESM
- 1:11:17TypeScript and Node
- 1:16:32Mocking GET routes
- 1:21:19Fastify framework introduction
- 1:26:33Fastify security features
- 1:32:36Denial of service protection
- 1:43:40Fastify project setup
- 1:54:54Mocking POST routes
- 2:01:48Data validation
- 2:13:23Workshop troubleshooting
- 2:20:37Lunch and conclusion
- 2:34:58Advanced Fastify routing
- 2:51:23Workshop wrap-up








