Skip to content

Setup & Coding guidelines

Julius Zeidler edited this page Nov 24, 2013 · 1 revision

Setup the project on your local machine:

  • Install node.js

  • Install mongoDB

  • check out the repository to your harddrive

  • Do an npm install while being in the repository folder

  • grunt watch will start the automated JSHinting and CSS creation.

  • node app.js will start a webserver on port 3000 you can watch the frontend at.

Coding Guidelines

  • We use 2 spaces for indentation

  • Use proper indentation!

  • A function should look like this: function (args) { // Content }

  • Function names are camelCase.

  • CSS-classes use hypens.

  • Don't use describing CSS-Classes such as "red", but "primary, danger, alert, etc".

Clone this wiki locally