CoffeePay provides automatically redirects to the PayPay payment link to get coffee.
-
Clone the CoffeePay and resolve dependency.
cd ~; git clone https://github.com/Kazutoshiyoc/CoffeePay.git cd CoffeePay npm install -
Get and store your Google Drive token
cd ~/CoffeePay/function/googleapi/credential/drive node getAndStoreToken_drive.js -
Create the data storage on your Google Drive
cd ~/CoffeePay node init.js -
Set the environment variables
cd ~/CoffeePay mv .env.sample .env vi .env-
Change an ENVIRONMENT value to "Local"
cd ~/CoffeePay vi .env -
Launch the CoffeePay server
cd ~/CoffeePay node server.js
-
Change an ENVIRONMENT value to "Heroku"
cd ~/CoffeePay vi .env -
Create a Heroku app & Set the Config Vars
-
Deploy on Heroku
-
-
Node.js
- Google REST API (googleapis)
- dotenv
- ejs
- fs
- http
- moment-timezone
- querystring
- require