Thanks to visit codestin.com
Credit goes to github.com

Skip to content

etaque/rewind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

All dependencies are declared in shell.nix. Either enter nix-shell (or use direnv or install them by hand.

Create a .env at root from sample.env.

Database

Required features:

  • PostgreSQL 11
  • Postgis with GDAL drivers enabled
  • Extensions postgis, hstore and postgis_raster created in DB

Migrations:

cd server
cargo run -- db migrate

Docker instance

Docker container with postgis/postgres/gdal available with:

docker-compose up -d

Connect via psql :

psql rewind -U rewind --port 25432 -h localhost --password
# password rewind

Nix container

A NixOS container is available, see ./server/bin/container.

Server

  • Main server:
cd server
./bin/dev-server
  • Tile server:
cd server
./bin/tile-server

Client

cd client
npm install
./bin/dev-server

Scripts

  • Import Vendée Globe 2020 GRIB files:
./server/scripts/vlm-vg20.sh
  • Load coastal lines (useless in current state of project):
./server/scripts/import-osm.sh

About

Sailing game idea playground

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •