backend
lab i/iix
schedule
Lab I (today)
Assignments
Prerequisites
node
i/iv
i node
Node.js is an open source project designed to help you write JavaScript programs that talk to networks, file systems, or other I/O (input/output, reading/writing) sources. That’s it! It’s just a simple and stable I/O platform that you are encouraged to build modules on top of.
i node: callbacks
I node: events
I node: streams
I node: modules
NPM
ii/iv
ii npm
npm is a package manager for the JavaScript programming language. It is the default package manager for […] Node.js. It consists of a command line client, also called npm, and an online database of […] packages, called the npm registry.
ii npm
The npm website
ii npm
bash
[examples] $ npm install express
+ express@4.16.2
added 48 packages in 4.476s
[examples] $
You can install packages with npm
ii npm
[examples] $ npm init --yes
Wrote to /Users/tilde/projects/oss/backend/package.json:
{� "name": "backend",� "version": "1.0.0",� "description": "",� "main": "index.js",� "dependencies": {},� "devDependencies": {},� "scripts": {� "test": "echo \"Error: no test\" && exit 1"� },� "keywords": [],� "author": "",� "license": "ISC"�}
bash
You can create packages with npm
"version": "2.5.1"
ii npm
major
minor
patch
"version": "2.5.1"
ii npm
Change
New feature
Bug fix
demo
node & npm
schedule
Assignments
Homework
Lecture II
Lab I (today)
assignments
iii/iv
learnyounode
take 1 hour to begin the learnyounode assignment on github
HOMEWORK
iv/iv
package
Start working on package in your feature
package
take ± 15 minutes to begin the package assignment on github
Note: Make sure you work in your GitHub repo for Block Tech. This will be the foundation for your feature (JS).
package
take ± 15 minutes to begin the package assignment on github
Note: Your project will be reviewed and receive feedback.
Expect people to read it and be ready for tips and tops!
coaching sessions on friday!
exit;
see you in lecture ii/xi!