Critical Sites Network Tool 2.0
This project uses a series of tables kept on a CARTO as its data source. There are some tasks required to turn the source dataset into the format that is required to make the application valid.
Details of this can be found on DATA_README.
Requirements:
- NodeJs 8.9 How to install
- Heroku toolbet How to install
If you use nvm
nvm use
To install run this command:
yarn
Run server locally using yarn:
yarn start
Run server locally using Heroku environment:
heroku local web
Using Stylelint with webpack plugin for styles files.
Using Eslint for javascript files.
To make easier handle the errors it is recommended to use a text editor plugin, in atom:
apm install linter linter-eslint linter-csslint
Before git pushes use husky to avoid linter errors.
Use --no-verify
just in case.
Configure existing heroku app:
heroku git:remote -a project
Run this command to publish master branch to Heroku:
git push heroku master
- Fork it!
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request :D