Svelte Snake

Table of Contents

Description

Installation

Usage

License

Questions

demo of the game snake being played

Description

It's the game snake. With some sound effect, music, and saveable high scores. Built with Node/Express on the backend, Svelte on the front end, and a MongoDB database to store the high scores



Installation

Download or fork, run npm install in the root folder and in the client folder



Usage

The root folder contains the backend and the client folder contains the front end. If you use the dev server on port 5000 from the client folder, you can use the hot reload. If you use just the backend server on http://localhost:8000 you can access the index.html file there, and you can send requests from the front end to the backend, though you don't have the hot reload, so you need to run the run the npm run build command from the client folder to rebuild, and then refresh the browser window

From the root folder:

  • npm run dev or npm start to start up the server on port 8000 (dev uses nodemon)

From the client folder:

  • npm run build to build static files in the public folder
  • npm run dev to start a dev server on port 5000

    License

License


Do whatever you want with this thing



Questions

Any questions on this or other projects can be directed to thomasjfoydel@gmail.com



More Of My Projects

Find more of my work on my GitHub

Top categories

Loading Svelte Themes