gustaYo / vue-chess

Multiplayer online chess game use Vue , Nodejs, Webpack, Em6, Socket.io, Mongodb, Express
456 stars 184 forks source link
chess-game express mongodb socket-io vuejs webpack

VueChess

Images

mostrando app mostrando app mostrando app mostrando app mostrando app mostrando app mostrando app

in progress

Todo

Install nodejs and mongodb

    apt-get install nodejs-legacy npm
    apt-get install mongodb

Run App

git clone https://github.com/gustaYo/vue-chess.git

cd vue-chess/server
yarn install
    node server
    // Get the address shown on console

// user test admin password yoyo

Build setup for developers


# install dependencies

# use these node_modules that I share to you to work correctly https://vue-chess-dependencies-enczdtjzdy.now.sh/

wget https://vue-chess-dependencies-enczdtjzdy.now.sh/
7z x node_modules.7z

# serve with hot reload at localhost:8080
yarn dev

# run server in new tab

cd /server
yarn install

node server

# Change the Dev variable in main.js to true

1. var Dev = true

# Accepts ssl certificate in localhost:(process.env.PORT || 3311)

# build for production with minification

# Change the Dev variable in main.js to false

npm run build

#Publish on server

rm -rf server/public/static
cp dist/static -r server/public/static
rm server/views/client.html
cp dist/index.html server/views/client.html

## Enjoy it