- Prepare Environment
- nodejs - tested on >= 0.10.x
- npm - texted on 1.2.x
- Clone Project and Install
git clone https://github.com/g0v/twangry.git
cd twangry/
npm install
- Config
Edit config/default.yaml, setup google sheet path and port.
- You can leave default setting to use event listsing from fact.g0v.tw. Or you can build your own timeline in google document.
- Example google sheet
- to turn this sheet into json, follow steps below
- json of 1st sheet in a document
- json of 2nd sheet in a document:
- change "od6" to "od7" of first json url
- Build index.json and category.json
Execute script to build json base on config/default.yaml
npm test
- start node
npm start
Then you can visit your site at http://localhost:8080/
- Use reverse proxy
If you need example, may read config/nginx.conf
-
Prepare Environment install nodejs for windows, http://nodejs.org/download/
-
Follow steps from 2-5 up.
- Error like this
[Error: 140735215821584:error:0607907F:digital envelope routines:EVP_PKEY_get1_RSA:expecting an rsa key:../deps/openssl/openssl/crypto/evp/p_lib.c:288:]
update node to 0.10.x