> Focus on having lots of in class exercises.
> DONT teach everything, let the students investigate topics on their own aswell!
> Focus on how to read documentation, google answers and google errors!!
> Teach towards the students being able to solve the homework
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you dont have access, write to one from the core team. You can see an example below!
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx class 07
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
- What happens when you open a webpage - draw on a whiteboard
- Client sends http request to a url
- The request is directed to the correct ip using DNS
- The server reads the request and sends a respond
- Show a simple request and response in Chrome dev tools
- HTTP - What is the internet
- Client
- Sends request
- Receives response
- HTTP server
- Listen for requests
- Responds with data
- https://websniffer.cc/
- Client
- Introduction to node js
- What is node and why node (https://www.youtube.com/watch?v=pU9Q6oiQNd0)
- V8 vs the browser that runs js
- What can you build with nodejs?
- Utilities
- Web server
- Much more
- Simple webserver with node js
npm init- Modules
- Homemade using
module.exportsandrequire - Live coding
- NPM modules
- npmjs.org
npm install -s express- node_modules
- package.json
- Homemade using
- .gitignore
- Nodemon
- Play around with Express - Focus on usage!
Go to the teacher-live-coding folder, npm install and run using nodemon ./src/backend/created-module.js. Try and implement this functionality from the bottom while explaining.
Go to the teacher-live-coding folder, run using nodemon ./src/backend/simple-webserver.js. Try and implement this functionality from the bottom while explaining.