- Recap javascript3
- callbacks and promises
- What is backend and why is it needed?
- Web servers - with emphasis on Node.js (mention that there are other technologies but don't go into details such as threads vs async)
- Node.js hands on, basic example
- how to run a script
- where to find documentation
- 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
- NPM - explain
requirewith a local file (see code-width-students). Thennpm init. Finally explainnpm install(don't go into details of dependencies vs devDependencies and global vs local, its too much) - Express.js (again mention that there are other modules notably http but don't go into specifics)
- Briefly explain homework assignment
- client server architecture
- node.js
- npm, require, package.json
- 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)