https://github.com/veselink1/quick-draw
A simple multiplayer drawing game with a Go REST backend and a React frontend.
https://github.com/veselink1/quick-draw
bootstrap docker docker-compose go golang postgresql react rest sql
Last synced: 2 months ago
JSON representation
A simple multiplayer drawing game with a Go REST backend and a React frontend.
- Host: GitHub
- URL: https://github.com/veselink1/quick-draw
- Owner: veselink1
- License: mit
- Created: 2020-09-07T05:45:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T06:34:39.000Z (almost 6 years ago)
- Last Synced: 2025-03-01T12:49:49.441Z (over 1 year ago)
- Topics: bootstrap, docker, docker-compose, go, golang, postgresql, react, rest, sql
- Language: Go
- Homepage: https://guess-the-drawing.refs.link/
- Size: 1.18 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Guess the Drawing!
[](https://github.com/qiangxue/go-rest-api/actions?query=workflow%3Abuild)
Demo: https://guess-the-drawing.refs.link/
> Project Template: https://github.com/qiangxue/go-rest-api
## Project Layout
The starter kit uses the following project layout:
```
.
├── cmd main applications of the project
│ └── server the API server application
├── config configuration files for different environments
├── internal private application and library code
│ ├── room game room-related features
│ ├── auth authentication feature
│ ├── config configuration library
│ ├── entity entity definitions and domain logic
│ ├── errors error types and handling
│ ├── healthcheck healthcheck feature
│ └── test helpers for testing purpose
├── migrations database migrations
├── pkg public library code
│ ├── accesslog access log middleware
│ ├── graceful graceful shutdown of HTTP server
│ ├── log structured and context-aware logger
│ └── pagination paginated list
└── testdata test data scripts
```
## Deployment
The application can be run as a docker container. You can use `make build-docker` to build the application
into a docker image. The docker container starts with the `cmd/server/entryscript.sh` script which reads
the `APP_ENV` environment variable to determine which configuration file to use. For example,
if `APP_ENV` is `qa`, the application will be started with the `config/qa.yml` configuration file.
You can also run `make build` to build an executable binary named `server`. Then start the API server using the following
command,
```shell
./server -config=./config/prod.yml
```
```