myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests | README | LICENSE

README.md (731B)


      1 # Development setup
      2 
      3 ## Nix development environment
      4 You can create a nix-shell for development purposes:
      5 ```
      6 nix-shell nix/shell.nix
      7 ```
      8 
      9 ## Docker environment
     10 The docker-compose environment in this folder configures a PostgreSQL database
     11 with Adminer interface:
     12 * https://hub.docker.com/_/postgres
     13 * https://github.com/docker-library/docs/blob/master/postgres/README.md
     14 
     15 The Adminer can be accessed at http://127.0.0.1:8080 with the default
     16 username/password `postgres`/`example`.
     17 
     18 The database is automatically initialized at start. To re-initialize the
     19 database tables manually, source the sql files from `../schema`:
     20 ```
     21 # use "example" default password to apply
     22 cat ../schema/*.sql | psql -h 127.0.0.1 -U postgres -p 5432
     23 ```