Skip to content

StidZhang/gomoku

Repository files navigation

gomoku

A prototype version of online multiplayer Gomoku web application based on Vue.js, Flask and MongoDB, running live on Heroku.

Project setup

Requirements:

  • Python >= 3.6
  • Node.js >= 8.0
git clone https://github.com/StidZhang/gomoku.git
cd gomoku
npm install
pip install -r requirements.txt

Run in local environment

Need to install MongoDB >= 4.0, then run npm run serve and flask run separately under gomoku folder. Project set to be running at http://localhost:8080 on default.

Run on Heroku

  1. Connect the repo to your Heroku app.
  2. Add both Python and Node.js in your Buildpacks under Settings.
  3. If you don't have a MongoDB to connect to, add mLab MongoDB Add-on in Heroku Resources. Then add the MongoDB URI into MONGODB_URI in Config Vars under Settings.
  4. Add a random string into SECRET_KEY in Config Vars under Settings for Flask security reason.

Future plan

  • Player matching and ranking system
  • Swap2 rule implementation
  • Historical match replay and view live match as audience
  • Live chat
  • Add bots trained by different machine learning model

Author

Stid Zhang

Yang Gao

LICENSE

MIT