Sudoku.dmi is sudoku game built using HTML, JavaScript and Node.js
- Singleplayer mode
- Multiplayer mode
- Solver
- Leaderboard
- Node.js
- Express.js
- Bootstrap
- jQuery
- MySQL
- Socket.io
Sudoku.dmi requires Node.js and MySQL to run
- Start by cloning the repository
git clone https://github.com/UniCT-WebDevelopment/Sudoku-Multiplayer.git
cd Sudoku.dmi
- Install required packages
npm install
- Setup your mysql database data inside of database.js. It should look something like this:
const databaseData = {
user: 'user',
password: 'password',
host: 'localhost',
database: 'sudoku.dmi'
};
- Change the value of adminIds inside of server.js to your user id inside of the database. This will be done to access the admin page to show the website stats. It should look something like this:
const adminIds = [1];
- Start the server
node server.js
- Go to you browser and navigate to http://localhost:5050