DharmaNiti is a lightweight web-based chatbot that provides simple, safe guidance inspired by Bhagavad Gita and Chanakya Niti.
It uses a Flask backend and HTML/CSS/JavaScript frontend.[page:0]
work – job, career, study, exams, etc.mind – stress, tension, sadness, low motivation, etc.relations – friends, family, love, trust, betrayal, etc.[page:0]tags.data/gita_verses.json, data/chanakya_summaries.json)[page:0]ai-chatbot-project/
│ app.py
│
├── data/
│ ├── gita_verses.json
│ └── chanakya_summaries.json
│
├── templates/
│ └── index.html
│
└── static/
├── style.css
└── script.js
git clone https://github.com/<your-username>/dharma-niti-chatbot.git
cd dharma-niti-chatbot
python -m venv env
# Windows:
env\Scripts\activate
# Linux/macOS:
# source env/bin/activate
pip install flask
python app.py
Then open in your browser:
http://127.0.0.1:5000/
You should now see the DharmaNiti chatbot UI running locally.[page:0]
This project is built as a Flask web app, so the chatbot UI is rendered by the Python backend (app.py) and served at http://localhost:5000 when you run it locally.[page:0]
When you open the GitHub Pages link:
https://pranjali0408.github.io/dharma-niti-chatbot/
you will only see a static page generated from the repository (README-like view), not the live chatbot UI.[page:0][web:49]
This is expected because:
app.py never starts on GitHub Pages.[web:49]For now, I am using this project in two ways:
python app.py.http://localhost:5000 in the browser.To make the chatbot accessible online without running it locally, I am exploring:
app.py on a platform that supports Python (e.g. Render / Railway / Fly.io).index.html + script.js on GitHub Pages.script.js to call the deployed Flask backend via an API endpoint such as https://<backend-url>/chat instead of http://localhost:5000.[web:48][web:49]Until one of these deployment options is set up, the chatbot will work only when run locally via python app.py and will not appear as an interactive bot on the github.io URL.[page:0][web:49]