Skip to content

kristjanjansen/environmental_notices_cartodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Environmental Notices backend in CartoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published