Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 1.63 KB

INSTALL.md

File metadata and controls

60 lines (49 loc) · 1.63 KB
  1. Prepare Environment

  • nodejs - tested on >= 0.10.x
  • npm - texted on 1.2.x
  1. Clone Project and Install

git clone https://github.com/g0v/twangry.git
cd twangry/
npm install
  1. Config

Edit config/default.yaml, setup google sheet path and port.

  1. Build index.json and category.json

Execute script to build json base on config/default.yaml

npm test
  1. start node

npm start

Then you can visit your site at http://localhost:8080/

  1. Use reverse proxy

If you need example, may read config/nginx.conf

Installation for Windows

  1. Prepare Environment install nodejs for windows, http://nodejs.org/download/

  2. Follow steps from 2-5 up.

FAQ

  1. 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