Skip to content
Snippets Groups Projects
Forked from PortalMEC / portalmec
Source project has a limited visibility.
SIMMC - Sistema Integrado de Monitoramento - Ministério das Comunicações
========================================================================

Development
-----------

To setup the development environment, run the following commands:

npm install

export PATH="$(pwd)/node_modules/.bin:$PATH"  # you probabily should put this
                                              # in your .bashrc or equivalent
bower install
# If the last level of net usage graph doesn't work install this extra repo
bower install http://github.com:highslide-software/highcharts.com.git

cp config.example.js config.js

Edit config.js set the options as needed. Then continue by executing:

grunt watch &
./server.js


Now just point your browser to http://localhost:3000 and you are done.

NOTE: If you run 'grunt' without any arguments, all less and javascript files in
assets/{less,js} will be compiled. The command 'grunt watch' will automatically
compile the files as they are modified.

NOTE2: The server will run on port 3000 by default but you can pass an
alternative port number as an argument to 'server.js'.



Production
----------

The process is very similar to the development environment, run the following:

npm install
export PATH="$(pwd)/node_modules/.bin:$PATH"
bower install
cp config.example.js config.js   # then edit this, like in dev
grunt prod
./server.js