Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1 KB

installation.md

File metadata and controls

44 lines (31 loc) · 1 KB

Installation

Create a proto application

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

Start the server

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!).

Run the tests

You can run the tests of your application thanks to:

$ make test