Skip to content

etaque/rewind

Repository files navigation

Rewind

Game exploration: offshore sail races, against real wind conditions, but accelerated: riding from depression to depression, around the world, in a few minutes.

Development

Create a .env at root from sample.env.

Prerequisites

Install cargo-watch for auto-reload:

cargo install cargo-watch

Start Services

Start database and tile server:

./server/bin/container up

Run migrations and start the server:

cd server
cargo run -- db migrate
./bin/dev-server

Start the client:

cd client
npm install
npm run dev

Ports:

Container Commands

./server/bin/container up       # Start db and martin
./server/bin/container down     # Stop containers
./server/bin/container logs     # Follow logs
./server/bin/container psql     # PostgreSQL shell
./server/bin/container migrate  # Run migrations
./server/bin/container destroy  # Remove containers and volumes

Tech Stack

Client:

  • React 18 + TypeScript
  • Vite
  • D3.js for globe projection
  • WebGL for wind visualization
  • Tailwind CSS

Server:

  • Rust with Tokio async runtime
  • Warp web framework
  • PostgreSQL + PostGIS for wind raster data
  • Martin for vector tiles

Scripts

Import Vendée Globe 2020 GRIB files:

./server/scripts/vlm-vg20.sh

About

Sailing game idea playground

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •