A simple browser-based game where you need to collect and avoid different types of elements. The game is built with HTML, CSS, and JavaScript, and uses Node.js for the backend.
- Install Node.js version 4.19.2.
- Make sure you have npm (Node Package Manager) installed.
-
Clone the repository:
git clone https://github.com/your-username/mouserace.git cd mouserace
-
Install the necessary packages:
npm install
Start the server by running:
npm start
For Redis on Windows, follow these steps:
-
Open PowerShell or Windows Command Prompt as an administrator.
-
Install Windows Subsystem for Linux (WSL) and Ubuntu:
wsl --install
- If this is your first time setting up WSL, you'll be prompted to choose a username and password. Make sure to remember them!
- Update the package list:
sudo apt update
- Install Redis server:
sudo apt install redis-server
- Start the Redis server:
sudo service redis-server start
- Enable Redis server to start on boot:
sudo systemctl enable redis-server
- Check the status of the Redis server:
sudo service redis-server status
- Open the Redis CLI to interact with the Redis server:
redis-cli
- In the Redis CLI, check if the server is running by typing:
127.0.0.1:6379> ping