- run
go get -u -f ./...
to install go libraries - setup the postgres server, and update the connStr in line 20 from db/postgres.go
- use the below script to create the schema
create table clicks (
color int,
created_at TIMESTAMP
)
- run the application using
go run cmd/clpsec-app-server/main.go
- play the game via localhost:8081/ws and localhost:8081/client; refresh the first page to reset the counters.
- How to Build a Simple Web App with React, Graphql, and Go
- Getting Started with React and Hello World Example
- Go with react
- golang websocket
Please contact with mac if you have further questions