Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 971 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 971 Bytes

TaiwanEbookSearch API

Prerequisite

  1. Install Git latest version and Node.js latest LTS version
  2. Get codebase
    $ git clone git@github.com:Taiwan-Ebook-Lover/TaiwanEbookSearch-API.git
  3. Install dependencies
    $ cd TaiwanEbookSearch-API
    $ npm install

Environment variables

Copy .env.example to .env to customize those environment variables.

The .env structure

  • PORT => local serve port number.
  • TOKEN => Telegram bot token.
  • GROUPID => Telegram group id.
  • DBURL => Firebase project URL.
  • FIREBASE_SERVICE_ACCOUNT_BASE64 => BASE64 string of firebase service account file. (Tool script: $ npm run convert-firebase-config -- -in serviceAccount.json)
  • READMOO_AP_ID => Readmoo affiliate program id.

Build & Serve

proxy to local server:

npm run build
npm start