Getting started

Install aries

npm install -g aries

-g is important, that will allow to use aries-start anywhere

Now let's build our first Hello-World app in 3 steps:

  1. make a folder (ex. src)
  2. create app.json config file in app-cfg (ie. ./src/app-cfg/app.json)
    {
    "name":"Test App"
    ,"ver":"0.1"
    }
  3. create hallo world controller inside src folder (./src/HalloWorldController.js)
    function HalloWorldController(request, response){
      
    }
    
    /**
     *@RequestMapping(value="/") 
     */
    HalloWorldController.prototype.sayHallo = function(request, response){
    	response.end("Hello world!");
    };

to start server just

aries-start src=./src port=8080

now go to localhost:8080