项目作者: Vizzuality

项目描述 :
Critical Sites Network Tool 2.0
高级语言: JavaScript
项目地址: git://github.com/Vizzuality/csn-tool.git
创建时间: 2016-09-30T18:08:17Z
项目社区:https://github.com/Vizzuality/csn-tool

开源协议:MIT License

下载


csn-tool

Critical Sites Network Tool 2.0

Data Management

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.

Install

Requirements:

If you use nvm

  1. nvm use

To install run this command:

  1. yarn

Usage

Run server locally using yarn:

  1. yarn start

Run server locally using Heroku environment:

  1. heroku local web

Linters

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:

  1. Linter
  2. Linter-Eslint
  3. Linter-CssLint
  1. apm install linter linter-eslint linter-csslint

Before git pushes use husky to avoid linter errors.
Use --no-verify just in case.

Deploy

Configure existing heroku app:

  1. heroku git:remote -a project

Run this command to publish master branch to Heroku:

  1. git push heroku master

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request :D

LICENSE

MIT