8000 GitHub - alesan99/chicken_society: "Become a chicken not a nugget". A full online multiplayer game.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alesan99/chicken_society

Repository files navigation

Chicken Society

Play here:

https://chickensociety.net

Development version:

https://alesan99.github.io/chicken_society/

Starting the server

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"

Initializing Dependencies

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

About

"Become a chicken not a nugget". A full online multiplayer game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0