# rs-tools
## Developer Notes
### Portal
To get the front-end ready for deployment:

1) Change directory to the front-end code:

   cd pp-frontend

2) Make sure you have all dependencies:

   yarn --frozen-lockfile

3) Build the app (be patient, this may take a few minutes):

   yarn deploy

4) Restart Apache:

   sudo /etc/init.d/httpd restart

### RoyaltyShare and DTMV
#### Setup
Make sure you have installed **NodeJS** and **npm**. If not, install them
`$ sudo apt-get install nodejs`
`$ sudo apt-get install npm`

Install node modules
`$ npm install`

Make sure you have correct gulp version
`$ gulp -v`

> CLI version 2.0.1
> Local version 4.0.0-alpha.2

#### Development
From project folder **rs-tools**:
`$ gulp`
It could take a few minutes.

All ui xslt templates are in *rs-tools/common/production/templates/components* folder
Redesigned styles, icons, JS are in *rs-tools/src*

To add new icon just put *svg* file into *rs-tools/src/assets/icons/icons* or *rs-tools/src/assets/icons/pics*
*icons* is for small ui icons, *pics* is for large svg pictures, which are used in dashboard or in admin panel.
