Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamhectorsosa/f-server
Testing a Game Server
https://github.com/iamhectorsosa/f-server
Last synced: 15 days ago
JSON representation
Testing a Game Server
- Host: GitHub
- URL: https://github.com/iamhectorsosa/f-server
- Owner: iamhectorsosa
- Created: 2024-12-02T11:53:15.000Z (30 days ago)
- Default Branch: main
- Last Pushed: 2024-12-03T11:22:54.000Z (29 days ago)
- Last Synced: 2024-12-03T12:22:27.851Z (29 days ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Game Server Test Repository
## Introduction
This is a test repository to model an HTTP Server (using `stdlib`) in Go using the project structure:
```bash
├── Makefile # commands and live-reload server
├── config # env vars
├── internal
│ ├── auth # authentication utils
│ ├── database # database connections and inits
│ │ ├── queries # sqlc-generated files
│ │ └── sql
│ │ ├── migrations # sql migration files (incl. schema)
│ │ └── queries # sql queries for sqlc generation
│ ├── server # server, handlers, and middleware
│ └── store # store for db interactions and business logic
├── main.go
└── sqlc.yaml
```## Requirements
- Go version `1.23.2`
- Goose >= v3 (for database migrations)
- sqlc >=v1.27.0 (for sql generation)## TODO
- [ ] Improve Store, server and auth error handling
- [ ] Integrate a logger into the Server
- [ ] Integrate business logic to improve metrics on matches
- [ ] Optimize SQL schema and/or queries with redesign or indexesa
- [ ] Add an integration test to the Server
- [ ] Add github workflow to check tests, staticcheck, gosec
- [ ] Add Docker