danf
Version:
Danf is a Node.js full-stack isomorphic OOP framework allowing to code the same way on both client and server sides. It helps you to make deep architectures and handle asynchronous flows in order to help produce scalable, maintainable, testable and perfor
44 lines (31 loc) • 1.03 kB
Markdown
Installation
============
[←](index.md)
### 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](http://yeoman.io/) do it for you!
First, install Yeoman:
```sh
$ npm install -g yo
```
Then, install the specific generator for Danf applications:
```sh
$ npm install -g generator-danf
```
Finally, create an application using:
```sh
$ yo danf
```
### Start the server
After creating your application, you should be able to start the server in this way:
```sh
$ 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:
```sh
$ make test
```
[←](index.md)