2024-09-13 15:48:51 +00:00
---
icon: laptop-arrow-down
---
# Installation
## Prerequisites
To ensure Hexabot runs smoothly, you'll need the following:
2024-11-20 19:41:28 +00:00
* **Docker:** We recommend using Docker to start the app since multiple services are required (MongoDB, Nginx, etc.). All the necessary Docker Compose files are located in the **docker** folder.
2024-09-13 15:48:51 +00:00
2024-11-20 19:41:28 +00:00
{% content-ref url="../developer-guide/setting-up-docker-for-development-and-production.md" %}
[setting-up-docker-for-development-and-production.md ](../developer-guide/setting-up-docker-for-development-and-production.md )
{% endcontent-ref %}
2024-09-13 15:48:51 +00:00
2024-11-20 19:41:28 +00:00
* **Node.js:** For development purposes, ensure you have Node.js >= v18.17.0 installed. We recommend using nvm (Node Version Manager) to easily manage and update your Node.js versions. 
2024-09-13 15:48:51 +00:00
2024-11-20 19:41:28 +00:00
{% content-ref url="../developer-guide/setup-node.js-with-nvm.md" %}
[setup-node.js-with-nvm.md ](../developer-guide/setup-node.js-with-nvm.md )
{% endcontent-ref %}
2024-09-13 15:48:51 +00:00
2024-10-28 05:06:15 +00:00
< details >
2024-09-13 15:48:51 +00:00
2024-10-28 05:06:15 +00:00
< summary > Do you want to install Hexabot on a Windows machine?< / summary >
2024-09-13 15:48:51 +00:00
2024-12-18 09:47:54 +00:00
1. Download and install Docker Desktop for Windows.
2024-10-28 05:06:15 +00:00
2. During installation, ensure that you select the option to use WSL 2 as the default backend for Docker.
3. After installation, start Docker Desktop and verify that WSL integration is enabled:
4. Open Docker Desktop and go to Settings. Under the General tab, ensure that "Use the WSL 2 based engine" is selected. Under Resources > WSL Integration, enable integration with your installed Linux distribution (e.g., Ubuntu). Restart your machine to finalize the Docker installation.
2024-12-18 09:47:54 +00:00
5. Open your WSL terminal (e.g., Ubuntu).
6. Follow Hexabot [installation ](installation.md#installation )steps below
2024-10-02 16:22:51 +00:00
2024-10-28 05:06:15 +00:00
Learn more : [https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-containers ](https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-containers )
2024-10-02 16:22:51 +00:00
2024-10-28 05:06:15 +00:00
< / details >
2024-10-02 16:22:51 +00:00
2024-10-28 05:06:15 +00:00
### Installation
2024-10-02 16:22:51 +00:00
2024-10-28 05:06:15 +00:00
1. **Install Hexabot CLI globally to have easy access to its commands:**
2024-09-13 15:48:51 +00:00
```
2024-11-20 19:41:28 +00:00
npm install -g hexabot-cli
2024-09-13 15:48:51 +00:00
```
2024-10-28 05:06:15 +00:00
2. **Create a new project** :
2024-09-13 15:48:51 +00:00
2024-10-28 05:06:15 +00:00
```
2024-11-20 19:41:28 +00:00
hexabot create my-chatbot
2024-10-28 05:06:15 +00:00
```
2024-09-13 15:48:51 +00:00
2024-10-28 05:06:15 +00:00
3. **Navigate to your project folder**
2024-09-13 15:48:51 +00:00
2024-10-28 05:06:15 +00:00
```
2024-11-20 19:41:28 +00:00
cd my-chatbot/
2024-10-28 05:06:15 +00:00
```
2024-09-13 15:48:51 +00:00
2024-10-28 05:06:15 +00:00
4. **Install dependencies** :
2024-09-13 15:48:51 +00:00
```
2024-11-20 19:41:28 +00:00
npm i
2024-09-13 15:48:51 +00:00
```
2024-10-28 05:06:15 +00:00
5. **Environment Setup:**  
To configure the environment variables, use the following command:
2024-09-13 15:48:51 +00:00
```
2024-11-20 19:41:28 +00:00
hexabot init
2024-10-02 16:22:51 +00:00
```
2024-10-28 05:06:15 +00:00
This will copy the `.env.example` file to `.env` in the `./docker` directory if the file does not already exist.
6. **Run in development mode:** Once your environment is set up, you can start the app. Use the following command:
2024-10-02 16:22:51 +00:00
```
2024-11-20 19:41:28 +00:00
hexabot dev --services nlu,ollama
2024-09-13 15:48:51 +00:00
```
2024-10-28 05:06:15 +00:00
{% hint style="info" %}
**Note:** The first time you run the app, Docker will take some time to download all the required images
{% endhint %}
2024-09-13 15:48:51 +00:00
### Usage
UI Admin Panel is accessible via [http://localhost:8080 ](http://localhost:8080 ), the default credentials are 
{% code title="Username" %}
```
admin@admin.admin
```
{% endcode %}
{% code title="Password" %}
```
adminadmin
```
{% endcode %}
2024-10-28 05:06:15 +00:00
{% hint style="info" %}
You can find more about the Hexabot CLI command [here ](../developer-guide/cli-command-reference.md ).
{% endhint %}