This is a simple and fun implementation of a Snake web application. This game includes an AI mode and full user management, along with leaderboards. This project is perfect for anyone looking to learn or understand the workings of a complete web application involving various technologies.
- AI mode
- User management
- Leaderboards
- JavaScript (35.5%)
- CSS (31.8%)
- Vue.js (14.1%)
- Python (11.3%)
Follow the steps below to get this application up and running on your local machine:
- Download and install Node.js.
- Download and install Python and pip.
- Start the Socket.IO server:
- Navigate into the
api
directory and install dependencies vianpm install
. - Start the server via
npm start
.
- Navigate into the
- Start the web frontend:
- Navigate into the
SnakeFrontend
directory and install dependencies vianpm install
. - Start the frontend via
npm start
.
- Navigate into the
- Start the Python Django server:
- Navigate into the
SnakeBackend
directory and install dependencies viapip install -r requirements.txt
. - Start the backend via
python manage.py runserver
.
- Navigate into the
After following these steps, you will have three local servers running:
- API will be available at http://localhost:80.
- Frontend will be available at http://localhost:8080.
- Django server will run at http://127.0.0.1.
This project is licensed under the terms of the MIT license.
This repository hosts the code for a web application version of the Snake game, including an AI mode, user management, and leaderboards. The app is built using various technologies, including machine learning, TypeScript, Socket.IO, Vue.js 2, and the Django REST framework.
We encourage contributions and improvements from the open-source community. Please feel free to fork, star, or watch this repository. Any feedback or contributions are welcome.