Skip to content

Taiwan-Ebook-Lover/TaiwanEbookSearch-API

Repository files navigation

TaiwanEbookSearch API

Prerequisite

  1. Install Git latest version and Node.js latest LTS version
  2. Get codebase
    $ git clone [email protected]: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •