/n0lendly

Primary LanguageTypeScript

n0lendly

Googleカレンダー予約アプリ(仮)

demo: https://n0lendly.herokuapp.com/


Setup for Mac

環境変数

# 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

PostgreSQL

postgres -D /usr/local/var/postgres 

Go

エントリーポイント

go run main.go

パッケージ管理(glide

$GOPATH/src/n0lendly

に対して

glide update

を行う。

npm

開発時のみ、n0lendly/tsx

npm install

また、npm run buildもしくはnpm run watchでビルドする。

Google OAuth2

GoogleカレンダーのAPIを使う。


Heroku

  • デプロイ
    • go buildpackを利用
  • その他
    • postgresqlを追加してアプリに紐付ける
    • 環境変数を設定(PORTは設定しない)

Docker

docker-compose up