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
View Demo
SCSS Files are watched and compiled into CSS with Gulp
$ npm install
$ gulp serve
Extract files in /htdocs/ directory in Applications/MAMP and navigate to localhost:(YOUR PORT) in browser
Extract files in wamp/www directory and and navigate to localhost:(YOUR PORT) in browser
- Ensure MySQL is set up properly with required table, columns etc.
- Update constants.php with MySQL credentials
- Run
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
Template based on Trillo (Credits to: Jonas Schmedtmann)
Project is licensed under ISC.