Git Product home page Git Product logo

webchat's Introduction

Opla Webchat

Chat with Opla's Bots in your web page

Getting started

Prerequisites

First of all, make sure you have Node 8.x and Yarn, and PHP installed.

This project requires a backend application to start. At the moment, you have to install this backend application by yourself. In the following, we assume this backend application runs locally and is available at: 127.0.0.1:8081.

Installation

  1. Install the (dev) dependencies:

    $ yarn install
    
  2. Create an application in the backend to get client_id / client_secret:

    $ curl -X POST \
         http://127.0.0.1:8081/auth/application \
         -H 'Cache-Control: no-cache' \
         -H 'Content-Type: application/json' \
         -d '{"name":"Opla Webchat","grant_type":"password","redirect_uri":"localhost","email":"[email protected]"}'
    
  3. Rename server/config-sample.php to server/config.php and edit it by adding client_id and client_secret:

    define('CLIENT_ID', 'client_id_here');
    define('CLIENT_SECRET', 'client_secret_here');
    
  4. Start the dev environment:

    $ yarn dev
    

This application should be available at: http://127.0.0.1:8085/. You need to use front to start a webchat, and put this url in front config's botsUrl

Contributing

Please, see the CONTRIBUTING file.

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT file.

License

opla-webchat is released under the MIT License. See the bundled LICENSE file for details.

webchat's People

Contributors

jeffladiray avatar lodelestra avatar lpmi-13 avatar

Watchers

James Cloos avatar GoUP 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.