Skip to content

nicolasparada/go-messenger-demo

Repository files navigation

Go Messenger App Demo

Source code of the blog posts "Building a Messenger App":

DEMO

Get the code:

go get -u github.com/nicolasparada/go-messenger-demo

Copy the example .env file:

cp .env.example .env

Now, modify it with your own GitHub client ID and secret. In the Github page, set a callback URL like so http://localhost:3000/api/oauth/github/callback.

Start database instance:

cockroach start-single-node --insecure --host 127.0.0.1

Create database schema, build and run:

cat schema.sql | cockroach sql --insecure
go build -o messenger
./messenger