WonderHttpServer is a Node.js + Express wrapper for high-reusability purpose.
Pre-requisite: You need to install Node.js before start this tutorial.
- Install wpm
- Set environment variable to wpm directory
- Create file named "wonderconf.json" on your project directory
- Copy and paste the text below in "wonderconf.json"
{
"name": "WonderHttpSample",
"description": "Simple WonderHttp",
"host": "http://wondersaga.com/wonder_modules/",
"version": "0.0.1",
"dependencies": {
"node.js": {
"projectPath": "./WonderHttpSample/",
"WonderHttpServer": "latest"
}
}
}
- Open terminal, and browse to your project directory
- Type
wpm install
wpm run WonderHttpServer
- You will have new directories; "wonder_modules" and WonderHttpSample (This is your workspace, and try to start and run Node.js code here)
- Type
cd ./WonderHttpSample
node Application.js
- You already have HTTP server !!