zacharyyz / Tilltro

Travel Booking Site - PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Programming in PHP (Academic Assignment)

This repository holds the source code of a Framework-less PHP Website.

The Site mainly display the following functionalities besides basic CRUD of MySQL:

  • Registering of User Account w/ Password Hashing
  • Updating User Email
  • Updating User Password
  • Basic browsing and Navigation
  • Adding and Removing of bookmarks
  • Basic Search Queries

Tilltro - All-in-one Booking platform

View Demo

SCSS Files are watched and compiled into CSS with Gulp

$ npm install
$ gulp serve

Usage on macOS with MAMP or Windows with XAMPP

Extract files in /htdocs/ directory in Applications/MAMP and navigate to localhost:(YOUR PORT) in browser

Usage on Windows with WAMP

Extract files in wamp/www directory and and navigate to localhost:(YOUR PORT) in browser

Additional Instructions

  1. Ensure MySQL is set up properly with required table, columns etc.
  2. Update constants.php with MySQL credentials
  3. Run

Database Schema

Tables

  • LOGIN
    • userId INT(11) NOT NULL AUTO_INCREMENT
    • name VARCHAR(255) NOT NULL
    • username VARCHAR(255) NOT NULL
    • email VARCHAR(255) NOT NULL
    • password VARCHAR(60) NOT NULL
  • HOTELS
    • id INT(11) NOT NULL AUTO_INCREMENT
    • title VARCHAR(50) NOT NULL
    • location TEXT NOT NULL
    • description TEXT NOT NULL
    • stars INT(1) NOT NULL
    • rating DECIMAL(10,1) NOT NULL
    • mainImagePath TEXT NOT NULL
    • category TEXT NOT NULL
  • TOURS
    • id INT(11) NOT NULL AUTO_INCREMENT
    • title VARCHAR(50) NOT NULL
    • subtitle VARCHAR(75) NOT NULL
    • location TEXT NOT NULL
    • description TEXT NOT NULL
    • stars INT(1) NOT NULL
    • rating DECIMAL(10,1) NOT NULL
    • mainImagePath TEXT NOT NULL
    • category TEXT NOT NULL
  • HOTEL_LOGIN
    • userId INT(11) NOT NULL
    • hotelId INT(11) NOT NULL
  • TOUR_LOGIN
    • userId INT(11) NOT NULL
    • tourId INT(11) NOT NULL

References & Credits


Template based on Trillo (Credits to: Jonas Schmedtmann)

Project is licensed under ISC.

About

Travel Booking Site - PHP

License:ISC License


Languages

Language:PHP 82.1%Language:CSS 17.1%Language:JavaScript 0.8%