2016-10-02 23:32:18 +00:00
==========
Contribute
==========
Use the following instructions and guidelines to contribute to the Portainer project.
Build Portainer locally
=======================
Requirements
------------
Ensure you have `Docker <https://docs.docker.com/engine/installation/> `_ , `Node.js <https://nodejs.org/en/> `_ >= 0.8.4 and `npm <https://www.npmjs.com/> `_ installed locally.
Build
-----
Checkout the project and go inside the root directory:
.. code-block :: bash
2017-03-23 18:21:13 +00:00
$ git clone https://github.com/portainer/portainer.git
2016-10-02 23:32:18 +00:00
$ cd portainer
Install the dependencies using `` npm `` :
.. code-block :: bash
2017-03-24 12:59:49 +00:00
$ npm install -g bower && npm install
2016-10-02 23:32:18 +00:00
2017-03-24 11:19:51 +00:00
Ensure that a folder named `bower_components` is created in the root directory, if not run the following command:
.. code-block :: bash
2017-03-24 12:59:49 +00:00
$ bower install --allow-root
2017-03-24 11:19:51 +00:00
2017-01-21 04:55:27 +00:00
Note for CentOS users, you'll need to create a symlink to the `` shasum `` binary:
.. code-block :: bash
$ ln -s /usr/bin/sha1sum /usr/bin/shasum
2017-01-05 08:42:25 +00:00
Build the app locally:
.. code-block :: bash
$ grunt build
2017-01-21 04:55:27 +00:00
2016-10-02 23:32:18 +00:00
Start a live-reload process, the local application will be updated when you save your changes:
.. code-block :: bash
$ grunt run-dev
Access Portainer at `http://localhost:9000 <http://localhost:9000> `_
Do not forget to `lint <http://www.javascriptlint.com/> `_ your code:
.. code-block :: bash
$ grunt lint
Contribution guidelines
=======================
Please follow the contribution guidelines on `the repository <https://github.com/portainer/portainer/blob/develop/CONTRIBUTING.md> `_ .