|
3 years ago | |
---|---|---|
app-server | 4 years ago | |
jsdoc | 4 years ago | |
public | 4 years ago | |
server | 3 years ago | |
src | 3 years ago | |
tests | 3 years ago | |
.browserslistrc | 4 years ago | |
.env.development | 3 years ago | |
.env.production | 4 years ago | |
.eslintignore | 4 years ago | |
.eslintrc.js | 4 years ago | |
.gitignore | 4 years ago | |
Dockerfile | 4 years ago | |
README.md | 3 years ago | |
babel.config.js | 4 years ago | |
code.extensions | 3 years ago | |
docker-compose.yaml | 4 years ago | |
jsconfig.json | 4 years ago | |
package-lock.json | 3 years ago | |
package.json | 3 years ago | |
project.code-workspace | 3 years ago | |
vue.config.js | 3 years ago |
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 :
Docker Compose >= v1.27.4
npm install
cd server && npm install
For development there is a default environment in .env.development
To run the backend you also need a mariaDB, following will start :
the backend server
npm run dbtest
npm run server-dev
You can admin the db at http://localhost:8080
Per current file ./.env.development, access local test DB admin with:
th
th123
npm run dev
You will need to fill up the .env.production
file
# 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 :
npm run build-docker
docker-compose start
## Or docker-compose up to get logs