The chatbot UI is supposed to be imported as bundled JavaScript file, and automatically generate the DOM.
<script type="text/javascript">
var el = document.createElement('script')
el.src = 'dist/aj-chatbot.js'
document.body.appendChild(el)
</script>
If you need to develop locally, please follow the instructions below.
# One time setup
npm install
# developing, running at localhost:3001
npm start
# build, then open dist/index.html
npm run build
# lint
npm run lint
node >= 12.0.0
npm >= 6.0
Please refer to ./examples/index.html
.
- Docker
Start S3 Proxy
# build docker image
docker build -t aj/ukraine .
# run the container
docker run -p 3000:3000 -t aj/ukraine
# run in background
docker run -d -p 3000:3000 -t aj/ukraine
Visit http://localhost/index.html;
If Hello Rasa appears on your screen, that's all of the proxy.
Other commands
# find all running containers
docker ps -a
# stop the container, replace <container_id> with the result about
docker stop <container_id>
# clean up all containers
docker rm $(docker ps -a -q)
# clean up images
docker rmi $(docker images -q -f dangling=true)
git cc -m '[# card_no] message' --co 4g