You need to download and install:
- Java Development Kit (tested on versions 8 and 15)
- MySQL (Windows installer: here)
- Node.js & npm
- Compile Java Classes
From main project folder, run: cd src/generator && javac *.java
.
- Install necessary npm dependencies
Inside main project folder, run this command:
npm i socket.io express express-session nodemon mysql ejs
- Configure database
From main project folder, run: (-p requires password)
mysql -u your_name -p < db.sql
Inside server.js code, in line 13, set your connection as following:
host: 'localhost',
user: 'your_name',
password: 'your_password',
database: 'sudokuDB',
});
Tested and worked on MySQL 8.0.21.
- Run the script inside your terminal:
npm run start
To test the game, server runs on port 8080, so in your browser, go into 127.0.0.1:8080
. Create an account and log into the game, then either join or create a new room. For a bit more global testing, you can use and configure as written at https://localhost.run/.