Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 2.86 KB

README.md

File metadata and controls

80 lines (51 loc) · 2.86 KB

HackYourFuture Node.js - Reading material week 1

Agenda

  1. Recap last week
  2. Previous homework
  3. Questions & answers (Q&A)
  4. What is Node.js?
  5. Finding documentation
  6. Setting up a Node.js project using npm init and package.json
  7. Installing dependencies using npm install
    1. Local and global mode
  8. Importing modules using require
    1. Built-in, external modules and local files
  9. Building an HTTP server using built-in http module
    1. HTTP request methods
    2. HTTP response status codes
  10. Homework

What is Node.js?

From Node.js' websitehttps://nodejs.org/en/:

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.

What is Node.js? What can you do with it? Why should you use it? estimated time: 10 minutes

Getting started with Node.js and npm

A Beginner’s Guide to npm — the Node Package Manager NPM tutorials. Follow chapters 1 - 10 estimated time: 4-6 hours

Finding documentation

Mozilla Developer Network

Node.js Documentation

Setting up a Node.js project using npm init and package.json

npm init

package.json

Installing dependencies using npm install

npm install

Importing modules using require

Node.js modules

Building an HTTP server using built-in http module

http module documentation

HTTP request methods

HTTP response status codes

Homework

Check README.md in homework subdirectory.

Control flow and events

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?

Read: Examples of control flow in JavaScript

Prepare for the next lecture

Custom made playlist 💥 Lynda.com