To convert Taiwan government organization rawdata from multiple sources in [popolo project] (http://popoloproject.com) specification.
The sources of rawdata can be found in file data-index.json
.
$ npm i
You should run this command after adding new rawdata source in config.ls
.
$ lsc update-data-index.ls
$ lsc fetch-data.ls
The database name for building is mydb
by default
and you don't need to create it manually. The make boot
command will do it.
$ make boot
$ make build
$ make rebuild
NOTED: if your pg module got some errors, try npm rebuild pg
After building, an dumped sqlfile can be find in output/addressbook.sql
.
$ npm test
$ pip install Pygments
$ npm i groc
$ ./node_modules/groc/.bin/groc
The documents will be in the gh-pages branch.