BA Workspace is an AI-powered workspace for Business Analysts that turns scattered requirements, interviews, and stakeholder conversations into a traceable, structured knowledge graph.
- Backend (Python/Flask): API for projects, documents, conversations, and AI integration (Google Gemini).
- Frontend (Next.js): Web UI to create projects, upload documents, chat with AI, and manage conversations.
- Data: Stored in the
data/folder (SQLite database, documents, analysis output).
You only need one command (or script) to run both backend and frontend, then open your browser to try it.
- Python 3 (to run the backend)
- Node.js 18+ (to run the web UI)
- Google Gemini API key (free): used for AI features in the app
The app reads environment variables from a .env file in the project root (same level as start.sh). If you don’t have this file yet, follow the steps below.
-
In the project root, copy
.env.exampleto.env. -
On macOS/Linux (Terminal):
cp .env.example .env
-
Or copy manually: create a new file named
.envand paste the contents from.env.example.
Open .env in a text editor (Notepad, VS Code, TextEdit, etc.) and:
- Find the line
GEMINI_API_KEY=your_gemini_api_key_here. - Replace
your_gemini_api_key_herewith your real API key. - (Optional) You can leave the other lines as-is for local use:
BE_PORT=5050— backend portNEXT_PUBLIC_API_URL=http://localhost:5050/api/v1— API URL used by the frontend
Get a free Gemini API key:
👉 https://aistudio.google.com/app/apikey
After saving .env, you can run the application.
The script will:
- Check for Python 3 and Node.js
- Create
.envfrom.env.exampleif missing and prompt you to add your API key - Install backend (Python) and frontend (Node) dependencies
- Start the backend (port 5050) and web UI (port 3000)
How to run:
-
Open Terminal (macOS/Linux) or Git Bash (Windows).
-
Go to the project root (where
start.shis located). -
Run:
./start.sh
-
If the script says there’s no
.env, edit.env(addGEMINI_API_KEY), then run./start.shagain. -
When you see “Open your browser and go to…”, open your browser and visit:
-
To stop: press Ctrl+C in the terminal where
start.shis running.
-
Create and edit
.envas in Step 1. -
Backend:
cd backend python3 -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt cd .. python3 backend/run.py
-
Frontend (in a new terminal):
cd frontend npm install npm run dev -
Open your browser: http://localhost:3000.
| Item | Description |
|---|---|
| About | BA Workspace – AI app for BAs; turns requirements and conversations into a knowledge graph. |
| Config | Create .env from .env.example and set GEMINI_API_KEY (get it at https://aistudio.google.com/app/apikey). |
| Run | From project root: ./start.sh → open http://localhost:3000. |
| Stop | Press Ctrl+C in the terminal running start.sh. |
If something fails, double-check that .env exists and that GEMINI_API_KEY is set correctly.