The politicians api for Telemark County Council
10K+
Hapi.js plug-in/standalone for Telemark County Councils politician API. All politicians/parties/committees are registered in p360 and exported with the node-export-politicians module. The data/politicians.json file in this repo is the same as data/mergedData.json
This module handles the API. To keep the information updated you'll need to setup a solution for continuous export/update.
You'll need the following installed on your machine
Clone the repo
$ git clone [email protected]:telemark/api.t-fk.politikere.git
Make sure you have a MongoDB server running.
Setup the config so it matches your environment.
cd into directory and run the setup script to install dependencies and create indexes for the collection.
$ npm install
Start the server:
$ npm run start
To import data
$ mongoimport -h 192.168.99.100:27017 -d tfk -c politicians data/politicians.json --jsonArray
To setup indexes
$ mongo 192.168.99.100:27017/tfk config/mongodb.indexes
Content type
Image
Digest
sha256:b9b1bef82…
Size
20.1 MB
Last updated
over 6 years ago
docker pull telemark/api.t-fk.politikere