Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.2 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.2 KB

About

This is the port of https://github.com/kristjanjansen/environmental_notices_old to Node.js

Installing

This script assumes you have node, npm and volo installed.

git clone https://github.com/kristjanjansen/environmental_notices
cd environmental_notices
npm install
volo add

Config

  1. Create CartoDB account http://cartodb.com and note down account name
  2. Navigate to Account > Your api keys > API key and note down API key
  3. Create a new table from "I want to add some data from a URL", point it to this link
  4. Create /config directory under your project
  5. Create /config/default.json file with following contents (replace it with your values):
{
  "cartoUser": "your_account_name",
  "cartoKey": "your_api_key",
  "cartoTable" : "en_table_template",
  "scrapeMinute": 1,
  "httpPort": 8888
}

Run

node app.js

Run in production

  1. Install Forever (optional but highly reccommended).
  2. Create /config/production.json and fill with proper configuration.
  3. Run
NODE_ENV=production forever node app.js