https://github.com/qchateau/space-dodgems
A web-based mini game in C++20, featuring coroutines.
https://github.com/qchateau/space-dodgems
boost coroutines cpp cpp20 javascript websocket
Last synced: 20 days ago
JSON representation
A web-based mini game in C++20, featuring coroutines.
- Host: GitHub
- URL: https://github.com/qchateau/space-dodgems
- Owner: qchateau
- License: mit
- Created: 2020-09-12T17:57:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-08T20:47:44.000Z (almost 3 years ago)
- Last Synced: 2025-02-12T11:14:19.045Z (2 months ago)
- Topics: boost, coroutines, cpp, cpp20, javascript, websocket
- Language: C++
- Homepage:
- Size: 717 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Space Dodgems
This is a mini-game created with boost.beast, C++20 coroutines and websockets.
[I want to play](https://qchateau.ovh/space-dodgems/)
## How to run
### Release environment
The backend server comes pre-built in the image
```bash
docker-compose up -d
```### Dev environment
Sources are mounted and the backend is built on every backend restart.
```bash
docker-compose -f docker-compose.yml -f docker-compose-dev.yml up -d
```## Use behind a reverse-proxy
Here is a sample of the location blocks you can add
to an nginx server to use space-dodgems behind nginx
acting as a reverse-proxy.Note that it works for both HTTP and HTTPS.
```
server {
...location = /space-dodgems {
return 302 /space-dodgems/;
}location /space-dodgems {
proxy_pass http://127.0.0.1:8080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}...
}
```