This module is to help DiUS team to bootstrap and maintain a ChatBot project with Amazon Lex service. It is built with javascript (ES6), Node.js and lerna in a monorepo pattern.
The original idea is from @sergei-matheson who has suggested a more declarative way to manipulate the bot-definition, instead of managing and editing the JSON file directly. So we decided to start this new project and try to explore new approach to fulfill our requirements, which helps to spin up new ChatBot quickly and smoothly, as well as maintaining them.
PLEASE NOTE: This project is in a WIP status, and is not ready for production. It can be terminiated at any time, based on the decision of the team.
- Install lerna CLI
$ npm i -g lerna
- Link the dependencies. Go to the root directory and run
$ lerna bootstrap
$ lerna run start
A simple CLI has been created in chatbot-builder-core
which enables you to use the command chatbot-builder
in your terminal. To get it running, you can run npm link
in chatbot-builder-core
directory and go to chatbot-builder-example
and run chatbot-builder
command in your terminal to test the result.
$ chatbot-builder
$ lerna run test
if you want to target a single module to test, simply run
$ lerna run test --scope=chatbot-builder-core
Alternatively, you can manually go to each module and run test in the traditional way:
$ npm run test
You can run this project in the Docker container with the volume mapping, so the exports files will be synced to your local drive from the Docker host:
docker run -v [YOUR_LOCAL_DRIVE]:/usr/chatbot-builder/packages/chatbot-builder-example/exports dius/chatbot-builder
chatbot-builder is licensed under a MIT License.