Giter Site home page Giter Site logo

watson-assistant-wordpress's Introduction

conversation-wordpress-plugin

A Wordpress plugin for Watson Assistant.

Development Environment

Before you can work on this plugin, you need to do the following:

  1. Install npm and composer.

  2. Build the Javascript app by running the following commands from the js directory:

npm install
npm run build

In order to build a minimized file, use npm run prod instead.

  1. Install required PHP libraries by running one of the following commands from the root project directory:
composer install            # UNIX executable
php composer.phar install   # PHP executable

Testing

There are no unit tests for this plugin at the moment. A Wordpress Docker Compose file has been provided for running the plugin on a local instance of Wordpress and manually testing features. Simply run the following in your shell from the docker directory:

docker-compose up -d

The website can then be accessed at localhost:8000.

Releasing Updates

You must first have a Wordpress.org account with commit access to the plugin's Wordpress SVN repository. To release updates to the plugin, you must do the following

  1. Build the Javascript app.js file by running npm run prod as explained above.
  2. Increment the version number in watson.php and the Stable Tag in Readme.txt.
  3. Add the new version to the changelog in Readme.txt.
  4. Copy the contents of the watson-conversation directory into the trunk or tags\X.X.X directory outlined in the SVN repository documentation.

The plugin description, changelog and FAQ can be changed in the Readme.txt file stored in the watson-conversation directory. All relevant Wordpress.org plugin directory documentation, including the above links, can be found here.

Directories

docker

This directory contains the files necessary to create a test Wordpress site using docker-compose.

js

This directory contains the UI component of the plugin: a chat box component implemented using React.js. The commands outlined in Setup above are required to compile this React.js project into a single file. The resulting file is located at watson-conversation/app.js for the Wordpress server to load.

watson-conversation

When a user installs this plugin, this is the directory that is placed in the wp-content/plugins directory. Once the Javascript app has been built per the instructions above, this directory contains all the files necessary for Wordpress to run the plugin.

assets

This directory contains the plugin banner and screenshots.

watson-assistant-wordpress's People

Contributors

cyrilrudenko avatar

Stargazers

Michael Lin 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.