Skip to content

frol2103/game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paper(less) games

A web applications with some paper-based games to play with friends.

Dev environment

Tools needed

  • Docker
  • Docker-compose
  • An IDE or text editor

Create aliases for the docker-compose

  • On linux :

    export PATH_TO_GAME=~/projects/game
    
    export UID
    
    alias dcg="docker-compose -f $PATH_TO_GAME/dev-env/docker-compose.yml"
    
    alias dbGame="docker-compose -f $PATH_TO_GAME/dev-env/docker-compose.yml exec db mysql -h localhost -uuser -ppass db"
    
  • On windows, use powershell and execute this after replacing PROJECT_ROOT with the path where you cloned this repository (or you can add this to your powershell $profile file) :

    Function dcg { $env:GAME_SBT_CACHE_VOLUME = 'sbt_cache'; docker-compose -f PROJECT_ROOT\dev-env\docker-compose.yml $args}

Local environment basic commands

  • start/restart the local environment :

    dcg down; dcg up -d --build

    You can then open the frontend on http://localhost:4200

  • generate sources from the openapi specifications :

    dcg run --rm back "; project generated; openapiGenerate"; dcg run --rm back "; project generateAngularClient; openapiGenerate";
  • generate tables

    dcg run --rm back "genTables"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published