This is an exercise I have done by using Scala with Play framework.
The main function of the application is an address book which collects legistrator's contact information and metadata in Taiwan. Further more, it provide convenient ways to access the information.
See http://beta.hackfoldr.org/callliwei
It is temporarily on http://callliwei.hopto.org which is free domain provided by ddns.org.
The plan of moving the endpoint to a permanent link is ongoing.
java 1.8.0_92
scala 2.11.8
sbt 0.13.11
activator 1.3.10
play 2.5.8
play
anorm
h2
bootstrap
GA
See build.sbt in details.
/sitemap.xml
/api/v1
/api (always pointing to the newest version, such as /api/v1)
/api/profile/{legistrator-name}
/api/list
/api/list?q={query-string}
/api/list?q=黃國
/api/list/district/{district-name}
/api/list/district/台北市
/api/list/profession/{profession-name}
/api/list/profession/交通
/api/list/party/{party-name}
/api/list/party/時代力量
/api/category/{category-name}
/api/category/party
/api/category/profession
/api/category/district
git clone git@github.com:zhengda/callliwei.git
cd callliwei
set java_tool_optinos=-Dfile.encoding=UTF8 -Dinput.encoding=UTF8
activator clean compile
activator run
activator start
activator clean compile dist
unzip target\universal\calliwei-1.0.SNAPSHOT.zip
cd calliwei-1.0.SNAPSHOT
set java_tool_optinos=-Dfile.encoding=UTF8 -Dinput.encoding=UTF8
bin\callliwei
#ctrl-c to terminate service
data/t9a.h2.csv is the newest dataset used in system.
Alternatively, you can fetch all dataset in json on /api/list
See data/README.md for more information.
h2 database
scala
play
anorm
bootstrap
g0v domain http://call.ly.g0v.tw
g0v/domain#7 2017/3/14 call.ly.g0v.tw綁定CNAME到callliwei.hopto.org