BotSharp/docs/installation.rst

134 lines
3.3 KiB
ReStructuredText
Raw Normal View History

Installation
============
BotSharp strictly follows the modular design principle and adopts a structure in which views and logic are separated.
So you can choose the front-end Bot design and management interface.
If you want to use the `Articulate UI`_ as a front end, you can use the articulateui-specific compose file to quickly experience BotSharp.
Docker Composer
^^^^^^^^^^^^^^^
2018-08-31 02:59:36 +00:00
You can use docker compose to run, make sure you've got `Docker`_ installed.
2018-08-31 03:04:50 +00:00
::
PS D:\> git clone https://github.com/Oceania2018/BotSharp
PS D:\> cd BotSharp
1. Integrate with `Botpress`_
2. Integrate with `Articulate UI`_
2018-08-31 02:59:36 +00:00
::
2018-09-24 15:09:43 +00:00
PS D:\BotSharp\> docker-compose -f dockerfiles/docker-compose-articulateui.yml up
2018-08-31 02:59:36 +00:00
Point your web browser at http://localhost:3000 and enjoy Articulate-UI with BotSharp.
|ArticulateHomeScreenshot|
2018-08-31 02:59:36 +00:00
3. Integrate with `Rasa UI`_, you can use docker compose to run.
::
PS D:\BotSharp\> docker-compose -f dockerfiles/docker-compose-rasaui.yml up
Point your web browser at http://localhost:5001 and enjoy Rasa-UI with BotSharp.
|RasaUIHomeScreenshot|
4. Integrate with `Rasa Talk`_
2018-10-02 16:46:24 +00:00
Building & Run locally
^^^^^^^^^^^^^^^^^^^^^^
If you are a .NET developer and want to develop extensions or fix bug for BotSharp, you would CTRL + F5 to run it locally in debug mode.
2018-10-02 16:46:24 +00:00
Make sure the `Microsoft .NET Core`_ build environment and `Node.js`_ is installed.
Building solution using dotnet CLI (preferred).
2018-10-02 16:46:24 +00:00
* Build NLU API
::
PS D:\> git clone https://github.com/Oceania2018/BotSharp
PS D:\> cd BotSharp
2018-10-02 16:46:24 +00:00
PS D:\> dotnet build -v m -o ../bin -c ARTICULATE
PS D:\> dotnet bin\BotSharp.WebHost.dll
2018-10-02 16:46:24 +00:00
If you don't have Redis installed, please update ArticulateAi.json:
::
"AgentStorage": "AgentStorageInRedis"
to
::
"AgentStorage": "AgentStorageInMemory"
* Build Chatbot Designer
::
PS D:\> git clone https://github.com/Oceania2018/articulate-ui
PS D:\> cd articulate-ui
PS D:\> npm install
PS D:\> npm start
Building docker image
^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you just want to run BotSharp as a backend NLU engine, you can run it standalone in docker.
::
PS D:\> git clone https://github.com/Oceania2018/BotSharp
PS D:\> cd BotSharp
Build docker image:
::
PS D:\BotSharp\> docker build -f dockerfiles/DIALOGFLOW.Dockerfile -t botsharp .
Start a container:
::
2018-09-20 20:20:36 +00:00
PS D:\BotSharp\> docker run --name botsharp -it -p 5000:5000 botsharp
Access restful APIs: http://localhost:5000 if you are using RASA response format.
2018-09-20 20:20:36 +00:00
Get a bash shell if you want to update config in the container.
::
PS D:\BotSharp\> docker exec -it botsharp /bin/bash
|APIHomeScreenshot|
Install in NuGet
^^^^^^^^^^^^^^^^
::
PM> Install-Package BotSharp.Core
PM> Install-Package BotSharp.RestApi
Use BotSharp.NLP as a natural language processing toolkit alone.
::
PM> Install-Package BotSharp.NLP
.. _Botpress: https://github.com/botpress/botpress
.. _Rasa UI: https://github.com/paschmann/rasa-ui
2018-10-02 16:46:24 +00:00
.. _Articulate UI: https://github.com/Oceania2018/articulate-ui
.. _Rasa Talk: https://github.com/jackdh/RasaTalk
.. _Microsoft .NET Core: https://www.microsoft.com/net/download
2018-10-02 16:46:24 +00:00
.. _Node.js: https://nodejs.org
.. _Docker: https://www.docker.com
.. |APIHomeScreenshot| image:: /static/screenshots/APIHome.png
.. |ArticulateHomeScreenshot| image:: /static/screenshots/ArticulateHome.png
2018-09-20 20:20:36 +00:00
.. |RasaUIHomeScreenshot| image:: /static/screenshots/RasaUIHome.png