HUB
Sign inSign up
api.t-fk.politikere logo

telemark/api.t-fk.politikere

By telemark

•Updated over 6 years ago

The politicians api for Telemark County Council

Image
0

10K+

telemark/api.t-fk.politikere repository overview

Build Status js-standard-style

⁠api.t-fk.politikere

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.

⁠Prerequisites

You'll need the following installed on your machine

⁠Installation/setup

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

⁠Docker

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

⁠License

MIT⁠

Tag summary

Content type

Image

Digest

sha256:b9b1bef82…

Size

20.1 MB

Last updated

over 6 years ago

docker pull telemark/api.t-fk.politikere