A simple browser-based Aim Trainer game designed to improve accuracy and reflexes.
Follow these steps to set up the project on your local machine:
- Clone the repository
git clone https://github.com/gerifr/AimTrainer
- Navigate to the project directory
cd aim-trainer - Set up the server (USING XAMPP):
Move the project folder intohtdocs(e.g.,C:/xampp/htdocs/AimTrainer).
Start Apache and MySQL from the XAMPP Control Panel.
Go to phpMyAdmin.
Go to the SQL tab and run the following SQL code:CREATE DATABASE aim_trainer_db; USE aim_trainer_db; CREATE TABLE scores( id INTEGER PRIMARY KEY AUTO_INCREMENT, user_id INTEGER, score INTEGER, timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE users( id INTEGER PRIMARY KEY AUTO_INCREMENT, username VARCHAR(30), password VARCHAR(100) );
- Go to your project
You should be good to go tohttp://localhost/AimTrainer/index.phpand play around with it.
To make your game publicly accessible, you can use ngrok.
- Install ngrok:
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && \ echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && \ sudo apt update && sudo apt install ngrok
- Start your local XAMPP or PHP server.
- Run ngrok to expose the local server:
ngrok http 80
- Download ngrok from ngrok.com/download.
- Extract the downloaded file.
- Open Command Prompt or PowerShell, navigate to the folder where ngrok is extracted, and run:
ngrok http 80
- Share the provided public URL to allow others to access your game.


