- Recap last week
- Previous homework
- Questions & answers (Q&A)
- What is Node.js?
- Finding documentation
- Read-eval-print loop (REPL)
- Setting up a Node.js project using
npm init
andpackage.json
- Installing dependencies using
npm install
- Local and global mode
- Importing modules using
require
- Built-in, external modules and local files
- Building an HTTP server using built-in
http
module- HTTP request methods
- HTTP response status codes
- Routing
- Example
- Homework
From Node.js' website:
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
Videos:
Reading:
What is Node.js? What can you do with it? Why should you use it? estimated time: 10 minutes
Reading:
A Beginner’s Guide to npm — the Node Package Manager
NPM tutorials. Follow chapters 1 - 10 estimated time: 4-6 hours
Documentation:
Videos:
Documentation:
Videos:
Documentation:
Videos:
Documentation:
An important term when making applications is control flow. You already know all about it. Read through this page and answer this question: how do we control flow in JavaScript?
Examples of control flow in JavaScript
Check README.md in homework
subdirectory and use project
in lecture for reference.
Read the README.md for week 2.