0.1.0 • Published 7 years ago
flub78-nodejs-tutorial v0.1.0
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
Package installer
npm search openssl
npm install express
To create a package.json:
npm init
npm adduser
npm publish
npm unpublish flub78-nodejs-tutorial
0.1.0
7 years ago