The better way to create a new application/danf module (in Danf an application is a danf module and conversely) is to let Yeoman do it for you!
First, install Yeoman:
$ npm install -g yo
Then, install the specific generator for Danf applications:
$ npm install -g generator-danf
Finally, create an application using:
$ yo danf
After creating your application, you should be able to start the server in this way:
$ node danf serve
This will create a server and process client side files automatically rebuilding each time a file is changed.
At the end of this processing, a welcome message will be available at http://localhost:3080
!
Use
node danf serve --env prod
to start the server in prod environment (less debugging, more performances!).
You can run the tests of your application thanks to:
$ make test