myheats

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

DEVELOPMENT_SETUP.md (834B)


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