A simple chatbot manager based on rivescript
Run :
npm install
npm run nodemon
or
npm install
npm run start
Open your browser and go to
localhost:3000/chatbot/api/v1
You will end up on a log-in and sign-up page.

There are already two accounts created:
- One with one bot named Steeve (id: jean, pwd: 1234)
- one with no bots (id: user2, pwd: 1234).
You can log in with one of these accounts or create a new account.
When you sign up, you have to log in with your credentials to use the app.
You can now:
-
chat with any of your bots (if you have one). Press 'Enter' to send youx text.

-
create bots
-
modify your bots personalities
-
delete your bots
You cannot delete your account via the user interface.
You can log out by :
- clicking the 'logout' button
- refreshing the page (which will query the server for a new page)
On the server side, the routes are organized per category in different files. For example,
the endpoint for the request 'PATCH /chatbot/api/v1/bots' can be found in the file
'routes/chatbot/api/v1/bots.js' and uses the url '/'.

The server is stateless, meaning that it doesn't store any user user session. However it checks if user
sending a request is registered.
To avoid having to enter your credentials each time the front-end makes a request to the server, they are cached on the client-side in paragraphs "<p>" when you log in. The cached credentials
are then used each time the front-end makes a request to the server. When you log out, the cache is freed.
Besides the endpoint used to get the user interface, all the other endpoints serve json or text data that can be used in any front-end application.
