0.1.0 • Published 7 years ago

flub78-nodejs-tutorial v0.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

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

FileDescription
app.jsmain app using local modules
gameover.jssimple event management
hello2.htmlHTML page used by server_html.js
monmodule.jslocal module used by app.js
node_moduleslocal directory for nodejs modules
routes.jssmall html server using express for routing queries
server1.jssimplest http server
server2.jssimple http server generating html manually
server3.jssimple http server logging the requested page
server4.jssimple http server parsing url parameters
server_close.jssimple http server with callback on the close event
server_html.jssimple 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