/WonderHttpServer

A high reusability REST framework for Node.js + Express

Primary LanguageJavaScriptMIT LicenseMIT

WonderHttpServer

WonderHttpServer is a Node.js + Express wrapper for high-reusability purpose.

Getting Started

Pre-requisite: You need to install Node.js before start this tutorial.

  1. Install wpm
  2. Set environment variable to wpm directory
  3. Create file named "wonderconf.json" on your project directory
  4. 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"
    }
  }
}
  1. Open terminal, and browse to your project directory
  2. Type
wpm install
wpm run WonderHttpServer
  1. You will have new directories; "wonder_modules" and WonderHttpSample (This is your workspace, and try to start and run Node.js code here)
  2. Type
cd ./WonderHttpSample
node Application.js
  1. You already have HTTP server !!