Googleカレンダー予約アプリ(仮)
demo: https://n0lendly.herokuapp.com/
# http
export PORT=8080
# Google OAuth2
export AUTH_CLIENT_ID=clientid
export AUTH_CLIENT_SECRET=clientsecret
export AUTH_REDIRECT_URI=http://example.com/login/callback
# PostgreSQL
export DB_HOST=127.0.0.1
export DB_PORT=5432
export DB_USER=username
export DB_NAME=dbname
export DB_PASSWORD=dbpassword
postgres -D /usr/local/var/postgres
go run main.go
パッケージ管理(glide)
$GOPATH/src/n0lendly
に対して
glide update
を行う。
開発時のみ、n0lendly/tsx
で
npm install
また、npm run build
もしくはnpm run watch
でビルドする。
GoogleカレンダーのAPIを使う。
- デプロイ
- go buildpackを利用
- その他
- postgresqlを追加してアプリに紐付ける
- 環境変数を設定(PORTは設定しない)
docker-compose up