/node-workshop

Node.js workshop - Presentation och exempel

Primary LanguageJavaScriptMIT LicenseMIT

node-workshop

Node.js workshop, with presentation in Swedish.

Exercise examples

exempel/exempel1

Rewrite the code from index.js into a module starting from ovning.js

exempel/exempel2

Chat using express and socket.io

  1. Create a package.json file with npm init.
  2. Download and save the dependencies used in index.js.
  3. Start the app with node index.js and goto localhost:1337 in your browser.
  4. Explore the code.

exempel/exempel3

CLI example

  1. Install dependencies with npm install
  2. chmod +x mesh.js
  3. Search Swedish MeSH from the command line with ./mesh.js [term]
  4. Make it possible to show explanation of term with ./mesh.js [term] --show