- Install Git latest version and Node.js latest LTS version
- Get codebase
$ git clone [email protected]:Taiwan-Ebook-Lover/TaiwanEbookSearch-API.git
- Install dependencies
$ cd TaiwanEbookSearch-API $ npm install
Copy .env.example
to .env
to customize those environment variables.
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.
proxy to local server:
npm run build
npm start