The backend tracker for this calculator project. Notably, this tracking functionality has been removed for enhanced user privacy.
- The tracker is made in such a way it can be scalable to any project.
- Feel free to use it in your custom project.
- User Data Analysis: Analysis of the user and user per day recording.
- Performance Recording: Designed to track the user performance while using the calculator web application.
- Backend: Pure PHP
- Database: MySQL
- Hosting: [e.g., XAMPP, WampServer] (from this project I used 000webhost)
backend-tracker-for-calculator /
|-- api/
| |-- add-tracker.php # Edit this file for backend code modifications.
|-- localhost - 2023-08-24T231826.106.sql # This is the database, extract db here
To install and run the backend, follow these steps:
- Get the project:
git clone https://github.com/isaka-james/backend-tracker-for-calculator.git
cd backend-tracker-for-calculator
- Database configuration:
- Change the configuration to match your credidentials in api/add-tracker.php
// initializing of server variables
$server = 'localhost'; // for many distributions you can put 127.0.0.1
$db = 'id21133245_api'; // your custom database
$main_admin = 'id21133245_masterplan'; // your username in db
$main_admin_pwd = 'str0ngPassw0rd)'; // your pwd in db
- Import the database. This is the kind of necessary because the database structure is in this file.
mysql -u your_username -p your_database_name < localhost - 2023-08-24T231826.106.sql
- Run the project:
php -S localhost:80