For contributors:
npm install
Run this once at the beginning to install required dependancies
npm start
Run this to spin up the server
npm run dev
Run this to spin up the server with nodemon watching your changes
If you wish to host your own game:
- Set up a MySQL instance and start serving it on your machine or another host
- Change the credentials in
DB/credentials.js
to your own:
module.exports = {
host: "<YOUR HOST URL>",
user: "<YOUR MYSQL USERNAME>",
password: "<YOUR MYSQL PASSWORD>",
database: "<YOUR MYSQL DATABASE>",
}
Instead of doing this, you can also just set your environment variables
- Run
npm start
If you wish to view the source code for the single player sandbox version, stripped of multiplayer functionality, you can find that in single-player/
.
You can play it on your browser by running npm run old
.