Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erb3/sveio

A multiplayer geography game inspired by Posio
https://github.com/erb3/sveio

geography geography-game hacktoberfest posio rust

Last synced: 29 days ago
JSON representation

A multiplayer geography game inspired by Posio

Awesome Lists containing this project

README

        

# Sveio

A geography game inspired by [Posio](https://github.com/abrenaut/posio), written in πŸ”₯πŸš€Rust.

## Deployment

> [!IMPORTANT]
> Sveio does not impose any rate limit itself.
> You have to do this yourself, with something like nginx.

### Docker

Sveio is available as a docker image. If you use `docker run` you can run the following to start it:

```bash
docker run -d -p 8085:8085 ghcr.io/erb3/sveio:latest
```

Alternatively, you can use the following docker compose:

```yml
services:
sveio:
container_name: sveio
image: ghcr.io/erb3/sveio:latest
ports:
- 8085:8085
restart: unless-stopped
```

## Configuration

| Name | Description | Env | Flag | Default |
| ------------- | ---------------------------------- | --------------------- | ----------------- | ------- |
| Port | The HTTP port to listen to | `SVEIO_PORT` | `-p` | 8085 |
| Logging | Logging level | `SVEIO_LOGGING_LEVEL` | `-l` | info |
| Guess time | Amount of seconds allowed to guess | `SVEIO_GUESS_TIME` | `--guess-time` | 7 |
| Showcase time | Amount of seconds to show markers | `SVEIO_SHOWCASE_TIME` | `--showcase-time` | 3 |

For more information please run `sveio -h`.

## Socket.io

Sveio uses [Socketioxide](https://github.com/Totodore/socketioxide)

Here are some resources to get you started with Socketioxide:

- [I never thought I'd use Socket.Io again](https://www.youtube.com/watch?v=HEhhWL1oUTM) by Dreams of Code
- The examples

## Credits

- [Posio](https://github.com/abrenaut/posio) by [Abrenaut](https://github.com/abrenaut)
- [JSON of cities](https://github.com/abrenaut/posio/blob/master/game/data/cities.json) by [Abrenaut](https://github.com/abrenaut)
- [Leaflet.js](https://leafletjs.com/)
- [Carto maps](https://carto.com/)