Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.37 KB

File metadata and controls

31 lines (26 loc) · 1.37 KB

Node.js Week 1 (Lesson Plan)

Agenda

  1. Recap javascript3
    • callbacks and promises
  2. What is backend and why is it needed?
  3. Web servers - with emphasis on Node.js (mention that there are other technologies but don't go into details such as threads vs async)
  4. Node.js hands on, basic example
    • how to run a script
    • where to find documentation
  5. Client-server model (introduce URL endpoints and ports)
    • introduce HTTP. students need to know about request and response and content types, leave methods and status codes and body for week2
  6. NPM - explain require with a local file (see code-width-students). Then npm init. Finally explain npm install (don't go into details of dependencies vs devDependencies and global vs local, its too much)
  7. Express.js (again mention that there are other modules notably http but don't go into specifics)
  8. Briefly explain homework assignment

Core concepts

  • client server architecture
  • node.js
  • npm, require, package.json

Build with students

  • basics of node.js, simple script, how to run
  • simple Hello World node.js app
  • demo a sample web app, follow the requests and responses in chrome under the network tab - https://fullstack-exampleapp.herokuapp.com/
  • setting up a node project - npm init
  • installing packages
  • importing modules using require
  • Hello World - web server using express (test using browser)