This guide will help you install and run Kametay Events Management System on your local computer. We'll use XAMPP to set up the web server and database, and Composer to manage PHP dependencies.
Go to XAMPP official website and download the latest version of XAMPP for your operating system (Windows, macOS, Linux).
Run the installation file and follow the installation wizard instructions. Make sure you select the Apache and MySQL components as they are required for the Kametay Events Management System to function.
After installation, launch XAMPP Control Panel and run the following modules:
- Apache
- MySQL
In XAMPP Control Panel, click on the "Admin" button next to MySQL to open phpMyAdmin in the browser.
In phpMyAdmin, create a new database for your project. Call it event_management
.
In phpMyAdmin, go to the created database and enter:
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
firstName VARCHAR(255) NOT NULL,
lastName VARCHAR(255) NOT NULL,
age INT NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
);
Then,
CREATE TABLE events (
id INT AUTO_INCREMENT PRIMARY KEY,
event_name VARCHAR(255) NOT NULL,
location VARCHAR(255) NOT NULL,
event_date_time DATETIME NOT NULL,
price DECIMAL(10, 2) NOT NULL,
);
Then,
CREATE TABLE tickets (
id INT AUTO_INCREMENT PRIMARY KEY,
userId INT NOT NULL,
eventId INT NOT NULL,
seat_number VARCHAR(255) NOT NULL,
FOREIGN KEY (userId) REFERENCES users(id) ON DELETE CASCADE,
FOREIGN KEY (eventId) REFERENCES events(id) ON DELETE CASCADE
);
Congratulations, the tables are now created!)
Go to Composer official website and download the installation file for your operating system. Follow the installation instructions.
Open a command line (terminal) and enter the command:
composer --version
All this needs to be written in the terminal of your compiler. For example, in Vs code the Terminal is at the top and you have to click on it, then on "New Terminal" Go to your project path:
cd path/to/your/project
Installing the Google API client library:
composer require google/apiclient:^2.0
Download all project files and place them in one folder.
Go to your XAMPP root folder (usually C:\xampp\htdocs on Windows) and copy your project folder to this directory.
Once XAMPP is running, go to http://localhost/your_folder_name/eventtodatabase.html, then click on the "Insert Event Data" button to insert data into the events table.
Go to http://localhost/your_folder_name/EventManagementSystem.html to open the site. If you have any questions or problems, please email kametaytoktar@gmail.com.
By following these steps, you will be able to install and run Kametay Events Management System on your local computer. If you have any questions or concerns, please contact us for further assistance.