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.
data-index.json
Document
$ npm i
You should run this command after adding new rawdata source in config.ls.
config.ls
$ lsc update-data-index.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.
mydb
make boot
$ make boot $ make build
$ make rebuild
NOTED: if your pg module got some errors, try npm rebuild pg
npm rebuild pg
After building, an dumped sqlfile can be find in output/addressbook.sql.
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.
addressbook-data-convert
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
.Document
Installation
Update Source Properties
You should run this command after adding new rawdata source in
config.ls
.Generate Final Data
The database name for building is
mydb
by default and you don't need to create it manually. Themake boot
command will do it.Re-Generate Final Data
NOTED: if your pg module got some errors, try
npm rebuild pg
After building, an dumped sqlfile can be find in
output/addressbook.sql
.Test
Build Documents
The documents will be in the gh-pages branch.