Skip to content

datalocale/MapContrib

 
 

Repository files navigation

MapContrib

Contributing with translations

We plan to use Transifex in the future, stay tuned.

Contributing with code

Installation

$ git clone [email protected]:MapContrib/MapContrib.git
$ sudo npm install -g grunt grunt-cli bower
$ npm install
$ bower install
$ grunt

Branches

We use Git Flow to manage our branches. It means that the master branch is always clean and pointing to the latest public release.

Database

We use MongoDB, go to the db directory and execute import_database.sh. It will create a database called mapcontrib.

Automatic tasks

A Grunt task watch the files modifications and generate CSS from Less, JST templates from HTML, etc.

You just need to launch:

$ grunt watch

The server have to be launched with the command:

$ node src/server.js

It serves static files and provide the REST API.

Build

When your done, you can build a minified version of all the Javascript files and clean up a bit the folders by launching:

$ grunt build

A new directory called dist will contain your shiny new MapContrib.

Thanks

MapContrib is what it is because of some crazy people and free and open source projects. Let's name a few:

Packages

No packages published

Languages

  • CSS 55.7%
  • JavaScript 39.4%
  • HTML 4.9%