XState-Chatbot is a chatbot developed on the technology XState. XState is a JavaScript implementation of the concept of State-Charts.
Chatbot is developed as a backend service that will receive messages incoming from the user, and send messages to the user using a separate api call.
In this project, the nodejs
directory contains the primary project. It contains all the files of the project that will get deployed on the server. react-app
is provided only to ease the process of dialog development. It should be used only on a developer's local machine when developing any new chat flow. nodejs
should be run as a backend service and tested once on the local machine using postman before deploying the build to the server.
To support remote debugging, we recommend using VSCode. The VSCode launch script file is written which will be used to start the remote debugging session.
Steps to start a remote debugging session:
- Port forward to the the remote server (9229:9229)
- In VSCode Run options, select "Attach to remote"
- Start Debugging