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
Download or fork, run npm install in the root folder and in the client folder
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
npm run dev
or npm start
to start up the server on port 8000 (dev uses nodemon)npm run build
to build static files in the public foldernpm run dev
to start a dev server on port 5000
Do whatever you want with this thing
Any questions on this or other projects can be directed to [email protected]
Find more of my work on my GitHub