This is the port of https://github.com/kristjanjansen/environmental_notices_old to Node.js
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
- Create CartoDB account http://cartodb.com and note down account name
- Navigate to Account > Your api keys > API key and note down API key
- Create a new table from "I want to add some data from a URL", point it to this link
- Create /config directory under your project
- 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
}
node app.js
- Install Forever (optional but highly reccommended).
- Create /config/production.json and fill with proper configuration.
- Run
NODE_ENV=production forever node app.js