Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 977 Bytes

README-dev.md

File metadata and controls

38 lines (25 loc) · 977 Bytes

For contributors and those who wish to host their own game of Fancy Snake!

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:

  1. Set up a MySQL instance and start serving it on your machine or another host
  2. 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

  1. 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.