https://github.com/lizardcat/usiu-campus-events
USIU Campus Events is a PHP-MySQL web application that allows university departments and student clubs to create, manage, and showcase events.
https://github.com/lizardcat/usiu-campus-events
ajax mysql php
Last synced: 2 months ago
JSON representation
USIU Campus Events is a PHP-MySQL web application that allows university departments and student clubs to create, manage, and showcase events.
- Host: GitHub
- URL: https://github.com/lizardcat/usiu-campus-events
- Owner: lizardcat
- Created: 2025-05-30T09:41:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-31T11:27:35.000Z (about 1 year ago)
- Last Synced: 2025-06-16T16:58:41.737Z (about 1 year ago)
- Topics: ajax, mysql, php
- Language: PHP
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# USIU Campus Events Platform
This is a dynamic web application built for student clubs and departments at USIU-Africa to create, manage, and display campus events. It allows students to register for events, leave comments, and receive confirmation emails upon registration.
## Tech Stack
* **Frontend**: HTML, CSS (Bootstrap), JavaScript (Fetch API, AJAX)
* **Backend**: PHP
* **Database**: MySQL
* **Mailer**: PHPMailer (SMTP)
* **Server Environment**: XAMPP
## Features
* User registration and login
* Event creation by clubs
* Event listing and detail view
* Student registration for events
* Commenting system
* Confirmation emails after event registration
* Responsive UI with USIU branding
## Folder Structure
```
usiu-campus-events/
├── api/
│ ├── create_event.php
│ ├── register_user.php
│ ├── login_user.php
│ ├── register_event.php
│ ├── post_comment.php
│ └── utils/
│ └── db.php
├── assets/
│ ├── css/
│ │ └── style.css
│ ├── img/
│ │ └── usiu-logo.png
├── includes/
│ ├── header.php
│ ├── navbar.php
│ ├── footer.php
│ └── auth_modal.php
├── js/
│ ├── main.js
│ ├── form.js
│ ├── auth.js
│ └── event.js
├── create-event.php
├── event.php
├── index.php
├── login.php
├── register.php
└── view-events.php
```
## Setup Instructions
1. Install [XAMPP](https://www.apachefriends.org/index.html)
2. Clone or extract this project into the `htdocs` directory
3. Start Apache and MySQL via XAMPP Control Panel
4. Create the MySQL database `usiu_campus_events` and import the provided schema
5. Configure `api/utils/db.php` with your DB credentials
6. Setup SMTP credentials in `register_event.php` for PHPMailer
7. Access the project at `http://localhost/usiu-campus-events`
## Testing
* Use browser DevTools Network tab to inspect AJAX calls
* Use Postman to send requests to `api/` endpoints
* Manually test UI responsiveness and form feedback messages
## Credits
Developed for USIU-Africa coursework as a student project.