|
há 4 anos atrás | |
---|---|---|
app-server | há 4 anos atrás | |
jsdoc | há 4 anos atrás | |
public | há 4 anos atrás | |
server | há 4 anos atrás | |
src | há 4 anos atrás | |
tests | há 4 anos atrás | |
.browserslistrc | há 4 anos atrás | |
.eslintignore | há 4 anos atrás | |
.eslintrc.js | há 4 anos atrás | |
.gitignore | há 4 anos atrás | |
Dockerfile | há 4 anos atrás | |
README.md | há 4 anos atrás | |
babel.config.js | há 4 anos atrás | |
docker-compose.yaml | há 4 anos atrás | |
jsconfig.json | há 4 anos atrás | |
package-lock.json | há 4 anos atrás | |
package.json | há 4 anos atrás | |
project.code-workspace | há 4 anos atrás | |
vue.config.js | há 4 anos atrás |
This is a web version on the 12 heroes board game that I am coding for fun as a personal project. It is far from being complete and production ready.
Game official rules : https://cloud.jojolab.net/s/pBnC6wsSKC4E3RX
Here you have :
What's left :
npm install
cd server && npm install
npm run dev
npm run server-dev
See in the docker-compose.yaml file, you will need to export some environment variables.
You can do a .env
file with :
# HOST and PORT of the backend server for client socket connection
export VUE_APP_SERVER_HOST=
export VUE_APP_SERVER_PORT=
# Port on which you want to expose the game app
export VUE_APP_PORT=
## backend MariaDB information :
# DB host (usually localhost as same machine as the backend)
export DB=
# DB port (by default 3306 for mysql/MariaDB)
export DB_PORT=
# Depends on your DB config, you can connect to a unix socket instead of port
export DB_SOCKET=
# Database name
export DB_NAME=
# User and password
export DB_USER=
export DB_PASS=
Then you just need to do :
source .env
docker-compose build
deocker-compose start
## Or docker-compose up to get logs