Skip to content

andrew-boutin/go-chat

Repository files navigation

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.

Go Chat In Action

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


Check out my personal site!