Play here:
Development version:
https://alesan99.github.io/chicken_society/
Install Node.js at https://nodejs.org/en
In VSCode, execute the following command in the project directory:
npm ci
To start the server, type:
node server.js
It will be served to http://localhost:3000/
Crtl+C to stop
If you want to use a database, use the following:
Install MySQL: https://dev.mysql.com/downloads/
Add a .env file to the main directory (where server.js is):
SESSION_SECRET = "CHANGE_THIS_STRING"
USE_DB = "true"
MYSQL_HOST = "localhost"
MYSQL_PORT = 3306
MYSQL_USER = "MYSQL USER HERE"
MYSQL_PASSWORD = "MYSQL PASSWORD HERE"
MYSQL_DATABASE = "chicken_society"
These commands were used to set up node.js for use in the project. This is NOT required to simply install the project on a new machine.
npm init -y
npm install express socket.io socket.io-msgpack-parser express-session json5