Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flub78-nodejs-tutorial

flub782ISC0.1.0

Nodejs examples

nodejs, tutorial

readme

nodejs-tutorial

Javascript

In the javascript directory you will find a set of short javascript examples demonstrating one feature of the language.

All examples can be run by:

node hello.js

Nodejs

File Description
app.js main app using local modules
gameover.js simple event management
hello2.html HTML page used by server_html.js
monmodule.js local module used by app.js
node_modules local directory for nodejs modules
routes.js small html server using express for routing queries
server1.js simplest http server
server2.js simple http server generating html manually
server3.js simple http server logging the requested page
server4.js simple http server parsing url parameters
server_close.js simple http server with callback on the close event
server_html.js simple http server serving two URLs

NPM

NPM is bothe the node package repository and the package installer.

Package repository

https://www.npmjs.com/

https://www.npmjs.com/~flub78

Package installer

npm search openssl

npm install express

To create a package.json:

npm init

npm adduser

npm publish

npm unpublish flub78-nodejs-tutorial