Skip to content

think-ke/GovBot-Prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Run the GovBot Prototype Locally (Full Stack Setup Guide)

Prerequisites

Before spinning up the project, make sure your machine has the following installed:

The external APIs must be reachable:

(you must mock them locally)

Step 1: Clone the project

  • Open a terminal / command prompt
    • Windows: search for “Terminal” or “PowerShell”
    • Mac: search for “Terminal”
    • Linux: open your terminal
  • Clone the project (copy-paste this exact line and press Enter)
   git clone https://github.com/think-ke/GovBot-Prototype
  • After cloning finishes, run this command:
   cd govstack

(This takes you inside the project folder)

Step 2: Project folder structure

Your project root should contain these main folders (create any that are missing):

gov-bot-prototype/
├── agencies-admin-dashboard/           (Next.js admin dashboard)
├── chainlit/                           (Chainlit Python chatbot)
├── analytics/                          (if you have an analytics service)
├── docker-compose.demo.yml
├── .env                                (you will create this)
└── other files (.gitignore, README.md, scripts, etc.)

Step 3: Create the .env file

In the project root, create a file named .env and add the following content (adjust values for your local setup):

CHAINLIT_HOST=0.0.0.0
CHAINLIT_PORT=8000
API_BASE_URL=your-api-base-url
GOVSTACK_API_KEY=your-own-generated-key
NODE_ENV=development
NEXT_TELEMETRY_DISABLED=1
API_URL=your-api-url
NEXT_PUBLIC_ANALYTICS_API_URL=your-analytics-url
ADMIN_DASHBOARD_PORT=3010

Never commit this .env file with real keys - make sure it is listed in .gitignore.

Step 4: Create the Docker network

Your docker-compose.demo.yml uses an external network, so create it first:

   docker network create govstack-network

(run this once)

Step 5: Build and start the containers

Open a terminal in the project root folder and run:

   docker-compose -f docker-compose.demo.yml build chainlit-demo
   docker-compose -f docker-compose.demo.yml up -d chainlit-demo

This will start two services:

Step 6: Start the Admin Dashboard (easiest way – with live reload)

  • Open a new terminal window (keep the first one running) and run:
cd govstack-1/agencies-admin-dashboard
npm install
npm run dev

Step 7: Check everything is running

docker-compose ps

(You should see both services with status "Up" and the admin-dashboard should eventually show "healthy")

To follow logs:

   docker-compose logs -f

or for a specific service:

   docker-compose logs -f chainlit-demo

Step 8: Access the applications

Step 9: Stop and clean up

To stop everything:

   docker-compose down

To stop and also remove volumes (if you added any):

   docker-compose down -v

About

A publicly accessible repo for GovBot

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •