-
Notifications
You must be signed in to change notification settings - Fork 26
Home
Please help us improve and share your feedback! If you find better tutorials or links, please share them by opening a pull request.
Week | Topic | Read |
---|---|---|
1. | Node.js, npm, http | Week 1 Reading |
2. | fs, process | Week 2 Reading |
3. | express, REST | Week 3 Reading |
Homework will be tracked and submitted using the Node.js
project board in your class repo.
TODO: big, descriptive index with links Purpose: quickly find things that were introduced earlier + links to documentation
Start with the Node.js tutorials for beginners from The Net Ninja and from thenewboston.
Read Week 1 Reading.
Read Jim's summaries of promises and async & await from the JavaScript module.
We're going to use the latest Node.js LTS 10.x. Follow one of the following installation instructions depending on your operating system:
We will build on knowledge from the following HYF (sub)modules. If we feel we have gaps we should review the curriculum ourselves or ask a teacher to help.
- What is Node.js?
- Using Node Package Manager (NPM)
- Using
require
to include modules - Using
http
to handle and respond to HTTP requests - Using
fs
to read from and write to files - Using
process
to read arguments from command line - Using
express
to make a RESTful API
It is essential to have a backend for almost all web application. The backend is a place where we, developers, can store our data, communicate with users and let users communicate with us, do smart things like calculations, data processing, etc.
There are many languages for this. You might've heard of Java, C, C++, C#, Go, Python, Ruby, PHP and so on.
There are two reasons why we at HYF chose Node.js over others:
- You already know JavaScript, so it's easier to get started;
- Node.js is great for making web APIs because it is asynchronous by nature and thus allows for high throughput, so it allows many users to make very light requests at the same time.
- Lecture 1 (Joost): https://www.youtube.com/watch?v=c8OvRVsbIsc
- Lecture 2 (Joost): https://www.youtube.com/watch?v=pY7IDaLX-no
- Lecture 3 (Joost): https://www.youtube.com/watch?v=oeWCqKJsHtU&t=99s