Skip to content
/ chant Public

Chat Application written in Go, using Firebase, working on GAE/Go, easy to deploy

Notifications You must be signed in to change notification settings

otiai10/chant

Repository files navigation

chant

Build Status

Enjoy chatting, then work ;)

Deploy

# setup your secret varialbes
% vi app/secret.yaml
# Deploy it to GAE
% goapp deploy -application your-crazy-app app/

without AppEngine?

% go get github.com/otiai10/chant
% chant -secret you-secret.yaml

Secret Variables

app/secret.yaml should be like this

env_variables:
  # Server token salt,
  #     any string as you like
  JWT_SALT: w5Asjxxxxxxxxxxxxxx
  # For Twitter OAuth,
  #     obtained from "https://apps.twitter.com"
  TWITTER_CONSUMER_KEY: Keskxxxxxxxxxxxxxxxx
  TWITTER_CONSUMER_SECRET: Ub1c7sVPJJaxxxxxx
  # For Firebase,
  #     obtained from "https://console.firebase.google.com/"
  FIREBASE_API_KEY: AIzaSyCxxxxxxxxxxxxxxxxxxxxxx
  FIREBASE_AUTH_DOMAIN: your-crazy-app.firebaseapp.com
  FIREBASE_DB_URL: https://your-crazy-app.firebaseio.com
  FIREBASE_PROJECT_ID: your-crazy-app
  FIREBASE_STORAGE_BUCKET: your-crazy-app.appspot.com
  FIREBASE_MESSAGING_SENDER_ID: 72123123123123123123123
  # For Push Notification
  #     obtained from "General Settings" of "https://console.firebase.google.com"
  FCM_SERVER_KEY: AAAAqxxxx:adfadfadfasdfasdfadfadfadfadsfasdfas

Development

# Build frontend JavaScript
yarn start
# Wake up the server on local
goapp server app

Better use too command to parallelize both of them

% go get github.com/otiai10/too
% too -cmd "yarn start" -cmd "goapp serve app"

Issues and questions