This is a simple implementation of 2D Monopoly board game based on Websocket, NodeJS, Knex
Log in to https://monopoly-project2.herokuapp.com/ to start Monopoly game with your friends!
- Clone the repository to your local folder. Change current directory to this folder in shell.
- Install the dependent packages via npm using the following command:
npm install
- Create database using the following queries in your local MySQL server:
DROP DATABASE IF EXISTS monopoly_db; CREATE DATABASE monopoly_db;
- Migrate the preset db structure into your locally created monopoly_db using shell command:
./node_module/.bin/knex migrate:latest
./node_module/.bin/knex seed:run
- Start the server locally using the following code in shell:
node server.js
- open your browser, log to localhost:8080. Now game is ON!
Type your name and then click "Start Game" to begin!
Roll the dice, buy the land, act like you are a millionare! :-)