rumi55 / travel-agency

Web base application that help travel agency to show case their package, allowing their customer to book an package online with payment gateway

Home Page:https://smarttt.chengkangzai.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartTT

SmartTT is a simple, fast, and powerful tool for managing your travel agencies and bring it to online business with ease!

Getting Started

Requirement

Setting up

Go into the repo

cd SmartTT

Copy and Setting up the environment file

cp .env.example .env

Now you have to fill up the environment file by your IDE/Code Editor

Installing Dependencies

Assume you have installed Composer and Node and NPM

Installing Composer dependencies

 composer install

Installing NPM dependencies and build it

npm install
npm run dev

Setting up laravel

Generate Application Key

php artisan key:generate

Migrate the database and seed the data

php artisan migrate --seed

To generate responsive image, invoice, receipt, This command will take awhile to run

php artisan queue:work

FINALLY

Server the application

php artisan server

visit http://localhost:8000 to see the website

Running the tests
composer test

Algolia

To set up Algolia, you need to register the application on Algolia and get the API key and Application ID. Otherwise, you will not be able to use the search feature. After you get the API key and Application ID, you can set them in the .env file as shown below.

ALGOLIA_APP_ID=xxxxx
ALGOLIA_SECRET=xxxxx

Stripe API

To set up Stripe, you need to register the application on Stripe and get the API key. Otherwise, you will not be able to use the payment feature. After you get the API key, you can set it in the .env file as shown below.

STRIPE_KEY=xxxxx
STRIPE_SECRET=xxxxx
STRIPE_WEBHOOK_SECRET=xxxxx

Microsoft Graph API

To set up Microsoft Graph to synchronize calendar, you need to register the application on Microsoft Graph and get the API key. Otherwise, you will not be able to use the calendar feature. After you get the API key, you can set it in the .env file as shown below. The feautre require you to have SSL certificate to work as the microsoft policy.

OAUTH_APP_ID=xxxx
OAUTH_APP_SECRET=xxxx
OAUTH_REDIRECT_URI=https://127.0.0.1:8000/dashboard/msOAuth/callback
OAUTH_SCOPES='openid profile offline_access user.read mailboxsettings.read calendars.readwrite'
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token

Dialogflow

To set up Dialogflow, you need to register the application on Dialogflow and get the service account json file from Google cloud Platform. Otherwise, you will not be able to use the chatbot feature. After you get the API key, you can set it in the .env file as shown below.

GOOGLE_CLOUD_PROJECT=<project-name>
GOOGLE_APPLICATION_CREDENTIALS=<full-path-to-service-account-json-file>

Amazon S3

To set up Amazon S3, you need to register the application on Amazon S3 and get the API key. Otherwise, you will not be able to use the storage feature. After you get the API key, you can set it in the .env file as shown below.

AWS_ACCESS_KEY_ID=xxxxx
AWS_SECRET_ACCESS_KEY=xxxxx
AWS_DEFAULT_REGION=xxxxx
AWS_BUCKET=xxxxx

SMTP (Email)

To set up Email service, you should enter your credential for the system to send email. Otherwise, you will not be able to use the email feature. Your .env should look somewhat like below.

MAIL_MAILER=smtp
MAIL_HOST=<SMTP host>
MAIL_PORT=<SMTP port>
MAIL_USERNAME=<email address>
MAIL_PASSWORD=<email password>
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="admin@smartTT.com"
MAIL_FROM_NAME=${APP_NAME}

About

Web base application that help travel agency to show case their package, allowing their customer to book an package online with payment gateway

https://smarttt.chengkangzai.com/


Languages

Language:PHP 95.0%Language:Blade 4.9%Language:Shell 0.1%