PTT Daily Beauty - 表特日報
Clone or download

README.md

Daily Beauty - 表特日報

Daily Beauty 每晚十一點會自動蒐集 PTT 表特版前三名

這些都是 PTT 鄉民篩選過的,想要的話就快點到網站上訂閱吧~~~

Development Setup

Mongodb

// db.config
package db

const (
    user = "YOUR_MONGO_USER"
    pass = "YOUR_MONGO_PASSWORD"
    host = "YOUR_MONGO_HOST"
    port = 27017
)

AWS SES

// mail/config.go
package mail

const (
    user = "YOUR_SES_USER"
    pwd  = "YOUR_SES_PASSWORD"
    host = "YOUR_SES_HOST"
    port = 587
)

Deployment

Setup GCP App Engine

put your app engine credential here

// deploy-en/credential.json
{
    "type": "service_account",
    "project_id": "YOUR_PROJECT_ID",
    "private_key_id": "YOUR_PRIVATE_KEY_ID",
    "private_key": "YOUR_PRIVATE_KEY",
    // ...
}

Deploy app to App Engine(about 1 ~ 2 mins)

make deploy-app

Deploy cron job to App Engine

make deploy-cron