Giter Site home page Giter Site logo

shz-code / triptrip Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 995 KB

Travel booking full-stack website using raw PHP

Home Page: https://triptrip.epizy.com/

License: MIT License

CSS 3.63% Hack 0.58% JavaScript 0.45% PHP 95.34%
mysql php travel-agency payment-gateway php-mysql php-project smtp-mailer

triptrip's Introduction

GitHub repo file count

Triptrip - Travel Agency Solution

Triptrip is fullstack website that handles management of various tour and travel packages.

  • Users can browse, search, buy packages therefore generate pdf reports, write reviews and everything is done in realtime.
  • Admin user can manage users, tour packages, sales, generate pdf reports accordingly.
  • Raw PHP is used to script the backend.

Key Features

Users

  • User validation added on login and sign up. Username and email fields are unique. User will get mail after completing registration. (undo smtp_mailer comment)

  • Package purchase validation added. One user can not purchase same package twice, can not purchase after package has started and also can not purchase after package capacity is full.

  • User will get email after completing purchase. (undo smtp_mailer comment in success.php file)

  • User can write review and generate pdf report after purchasing any package and more.

Admin

  • View, add, modify packages.
  • Manage users. (Active/Inactive)
  • View and generate pdf report on sales.

Known Bugs

Checkout the dbConnection.php file for the known bugs.

Getting Started

Clone the repository

  git clone https://github.com/shz-code/triptrip.git

Prerequisites

You need to have a PHP enabled apache with mysql server installed on your local device.

You can use -

Code editor -

Installation

  • Start Apache and Mysql.

  • Extract downloaded project file

  • Rename the extracted folder to triptip.

  • Copy the extracted folder to htdocs(XAMPP) or www(Laragon) folder.

  • Create a new database named triptrip and create required table. Use the tableSchemas to create tables.

  • Open your browser and go to http://localhost/triptrip

  • Go to register and sign up using new user.

  • To make a user admin go to your database -> triptip -> users -> set is_admin to 1.

  • Separate dashboards for admin and users. Use admin dashboard to start adding new packages.

Please note

  • All the SQL codes are written in dbConnection.php file.
  • The file structure is modular. You will get components folder containing the common HTML for all pages like head, header, and footer.
  • This project uses SSL Commerz sandbox as payment gateway. Change the required code in _checkout.php and success.php to set up your sandbox. Visit SSL Commerz to know more.
  • This project uses PHPMailer to send emails to user on various occasions. Change the $mail->Username and $mail->Password according your mail address to start sending emails. Checkout PHPMailer to know more.

Screenshots

  • Search for desired package directly from landing page based on location Landing Page
  • Get all listed packages or search for desired package based on location Package Listings
  • Updated package rating after user review Package Ratings
  • Optional available package features Package Features
  • User reviews Package Review
  • Admin Dashboard to control the website Admin Dashboard
  • User dashboard to control user info and purchase info User Dashboard
  • SSL Commmerz payment gateway for completing purchase Payment Gateway

Built With

The scripting language used

The relational database management system used

Authors

Shahidul Alam - @shz-code

Akibul Hasan - @MdAkibulHasan

License

MIT License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • Design Inspired

triptrip's People

Contributors

mdakibulhasan avatar shz-code avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.