Go Chat
A chat app written in Go with Google authentication. Chat with other users. This project was primarily for learning Go and brushing up on things such as Redis and Docker.
Run
Pre-requisites: Install docker
, and follow One Time Set Up below.
make
Go
chat on localhost:8080
.
One Time Set Up
Create a Google application in Google Developer Console. Then, create a Client ID and Client Secret.
Create creds.json
with properties cid
and csecret
. These should contain your Client ID and Client Secret values. This enables Google authentication.
Technology
- Uses Redis as a store for connection and user info.
- Gin and Gin Sessions are used for middleware and session management which is tied into the Redis store.
- Google OAuth API integrations allow a user to login through Google so that go-chat can access their basic userinfo.
- Glide is used for dependency management.
References
- Go Chat App for Gorilla WebSocket info.
- Ramblings of a Build Engineer was used as a guide for this.
Check out my personal site!