Introduction #
Create folder for you awesome application:
macOS / Linux:
mkdir awesome_application cd awesome_application
Windows:
To create folder manualy
Make
package.json
file:2.1 Type command:
npm init
2.2 Fill information about you awesome application:
name: (awesome_application) Awesome Application! version: (1.0.0) description: My first Awesome Application using ifnode! entry point: (index.js) app.js test command: git repository: keywords: author: license: (ISC)
Install
ifnode
:
npm install ifnode --save
- Create
app.js
file:
var ifnode = require('ifnode'),
awesome = ifnode({
name: 'Awesome Application',
alias: 'awesome'
});
awesome.run(function() {
console.log("I'm running! Check http://localhost:8080");
});
Go to http://localhost:8080 - and you see working application!
Dive into
ifnode
to know more possibilities