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:
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
git checkout -b feature/my-new-feature
git commit -am 'Add some feature'
git push origin feature/my-new-feature