Code Monkey home page Code Monkey logo

chat-bot's Introduction

A Travel ChatBot

Introduction

A travel chat is built off the LIVE CHAT APP by Ogunsakin Damilola

Quick Start

To load in your php dependencies

$ cd chat-bot
$ composer install

Once this is complete. Copy your .env.example file to .env and update the following accordingly

DB_CONNECTION=XXXXX
DB_HOST=XXXXX
DB_PORT=XXXXXX
DB_DATABASE=XXXXXXX
DB_USERNAME=XXXXXXXX
DB_PASSWORD=XXXXXXX

Don't forget to replace the Xs with you actual value then proceed to generate a key for your laravel project

$ php artisan key:generate

This chat bot makes use of a third party travel API, so you will need to create an account on TravX. Enter your email and travel agency name, a new travel agency with an API will be generated for you.

TRAVEL_SUPPLIER_API=XXXXXXX     //http://test-api.travx.com.ng
TRAVEL_SUPPLIER_API_VERSION=X   //1

Don't forget to replace the Xs with the actual data. When all this has been done, you then proceed to running your migration command

$ php artisan migrate

Once the migration is successful, we need to load in our node_modules. To do this, we run the code below

$ npm install

Once the node modules have been installed then we can proceed to compiling our chat app using Laravel Mix

$ npm run build

Now we can start our chat app by

$ php artisan serve

chat-bot's People

Watchers

 avatar  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.