SmartTT is a simple, fast, and powerful tool for managing your travel agencies and bring it to online business with ease!
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
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
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
Server the application
php artisan server
visit http://localhost:8000
to see the website
composer test
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
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
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
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>
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
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}