Skip to content

toggle-corp/ai-chatbot-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI CHATBOT CMS

The AI chatbot will be white-labeled, allowing for full customization to meet the needs of any company. The chatbot will be integrated with Facebook Messenger, WhatsApp, and a custom chat window that can be embedded into company websites.

Built with

React Vite Typescript

Getting started

Below are the steps to guide you through preparing your local enviroment for the AI CHATBOT CMS. Before diving into setup please look into the concept of Github Sub Modules, Docker Merge.

Prerequisites

To begin, ensure you have network access. Then, you'll need the following:

  1. Git
  2. Node.JS version >=18 / 20+
  3. Pnpm
  4. Alternatively, you can use Docker to build the application.

Local development (with docker)

Clone the repository using HTTPS, SSH, or Github CLI

git clone https://github.com/toggle-corp/ai-chatbot-cms.git #HTTPS
git clone [email protected]:toggle-corp/ai-chatbot-cms.git #SSH
gh repo clone toggle-corp/ai-chatbot-cms #Github CLI

Download the contents of backend(ai-chatbot-backend)

git submodule update --init --recursive

Update Environment variables

  • create .env file and add COMPOSE_FILE variable for the ai-chatbot-cms
touch .env
  • Copy env.example to .env and update the variables for the backend
cd backend
cp env.example .env

NOTE: The backend has a higher priority than the ai-chatbot-cms. You can add backend environment variables in the CMS, but you must create a .env file in the backend for them to work.

Build the docker image

docker compose build

Start the development server

docker compose up

Install the dependencies

docker compose exec react bash -c 'pnpm install'

Generate type

docker compose exec react bash -c 'pnpm generate:type'

Local development (without docker)

Same steps upto downloading the contents of backend

Update Enviroment variables

  • create .env file and add COMPOSE_FILE and other variable for the ai-chatbot-cms
touch .env

NOTE: Copy the env variables from the docker compose file in environment section

Install the dependencies

pnpm install

Generate type

pnpm generate:type

Start the development server

pnpm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published