$ make
Usage: make COMMAND
Commands :
help - List available tasks
clean - Cleanup
generate - Generate GraphQL go source code
test - Run tests
build - Build GraphQL API
run - Run GraphQL API
image - Build Docker image
build-frontend - Build JS client frontend
run-frontend - Run JS client frontend
image-frontend - Build JS client Docker image
get - Download and install packages
deps - Download and install dependencies
release - Create and push a new tag. Modify `Version` field in `server.go` as it's used as an actual tag name
update - Update dependencies to latest versions
version - Print current version(tag)
redis-up - Start Redis
redis-down - Stop Redis
Run
Terminal 1
Start Redis
make redis-up
Terminal 2
Run GraphQL API
make run
Terminal 3
Run JS client frontend. Command below should open a browser at http://localhost:3000.
Open another window at http://localhost:3000 post a message and see it appear in the other window.