emmapapaioan / FuelOffers

FuelOffers is a web application for browsing and comparing fuel offers from various gas stations. Built with PHP, HTML, CSS, JavaScript, and MySQL, it also allows users to read announcements and registered users to upload offers. The project serves as an assignment for the Hellenic Open University.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FuelOffers

fuel-offers.mp4

Fuel-Offers is a web application built using PHP, HTML, CSS, JavaScript, and MySQL. The project was built as an assignment for the Hellenic Open University. It allows users to browse and compare fuel offers from different gas stations and moreover to read announcements uploaded by the admin. The offers are uploaded by users at any time, after their registration.

Prerequisites

To run this application, you will need to have the following software installed on your machine:

  • PHP 7.0 or later
  • MySQL 5.7 or later
  • Apache web server
  • phpMyAdmin (optional, but recommended)

Run the project

To run the Fuel-Offers application, follow these steps:

Clone the repository:
git clone https://github.com/emmapapaioan/Fuel-Offers.git
Create a new database in MySQL using phpMyAdmin or the command line:
CREATE DATABASE papaioannou;
Import the database schema from the papaioannou.sql file into the newly created database:
mysql -u [username] -p papaioannou < ./papaioannou.sql
Update the database connection settings in the config.php file with username "emma" and password 123456 or with your MySQL username and password.
If you choose to use your username etc, you must update the shared/database.php
Start the Apache web server and navigate to the index.php file in your web browser.

Usage

Once the application is up and running, users can browse the fuel offers and moreover view announcements uploaded by the admin. The unregistered users can view fuel offers and the announcements. The registered users can also upload fuel offers. The application also includes an admin panel where authorized users can add and delete announcements.

Additionally, registered users can download an XML file from the site, with their company data. The site uses XSL styling for displaying the XML file and also DTD validation for the XML.

About

FuelOffers is a web application for browsing and comparing fuel offers from various gas stations. Built with PHP, HTML, CSS, JavaScript, and MySQL, it also allows users to read announcements and registered users to upload offers. The project serves as an assignment for the Hellenic Open University.


Languages

Language:PHP 63.0%Language:CSS 19.1%Language:JavaScript 10.4%Language:XSLT 6.7%Language:Hack 0.8%