منصة ذكية تساعدك في إيجاد الإرشاد والتوجيه القرآني لأي موضوع في حياتك
An intelligent platform that helps you find Quranic guidance for any topic in your life, using Artificial Intelligence and Natural Language Processing.
| Layer | Technology |
|---|---|
| Frontend | Next.js 14, TypeScript, Tailwind CSS |
| Backend | Python FastAPI |
| AI Engine | LangChain, OpenAI GPT |
| Database | PostgreSQL |
| Cache | Redis |
| Vector DB | Pinecone |
| Container | Docker & Docker Compose |
# Clone the repository
git clone <repo-url>
cd Interpreting-the-Quran-using-artificial-intelligence
# Setup environment file, then edit .env and add your API keys
make setup
# Build all Docker images
make build
# Start all services
make up
Access:
Useful commands:
make logs # stream logs from all services
make ps # show container status
make down # stop all services
make clean # stop and delete all data
make help # show all available commands
cd frontend
npm install
npm run dev
# Access at http://localhost:3000
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Start without database (demo mode)
uvicorn main:app --reload --port 8000
main (the deployment workflow triggers on pushes to main).NEXT_PUBLIC_API_URL under Settings → Secrets and variables → Actions → Variables.main; workflow .github/workflows/nextjs.yml will build and deploy frontend/out automatically.Notes:
owner/repo), the frontend auto-uses /<repo> as base path during Pages export.<name>.github.io), it automatically deploys from root /.Copy .env.example to .env and fill in:
| Variable | Description | Required |
|---|---|---|
OPENAI_API_KEY | OpenAI API key for AI responses | Optional (demo mode without it) |
PINECONE_API_KEY | Pinecone vector database key | Optional |
POSTGRES_* | PostgreSQL credentials | Optional (in-memory demo) |
NEXT_PUBLIC_API_URL | Backend API URL | Yes |
Note: The platform works in demo mode without any API keys — it returns pre-defined example responses.
POST /api/ask-quran
Content-Type: application/json
{
"question": "كيف يرشدنا القرآن في موضوع الصحة؟",
"category": "medicine"
}
GET /api/quran/search?q=الصبر
GET /api/categories
GET /api/miracles
Full API docs available at /docs when backend is running.
.
├── frontend/ # Next.js 14 + TypeScript + Tailwind CSS
│ └── src/
│ ├── app/ # App router pages
│ ├── components/ # React components
│ ├── lib/ # API client
│ └── types/ # TypeScript interfaces
├── backend/ # Python FastAPI
│ ├── routers/ # API route handlers
│ ├── models/ # SQLAlchemy models
│ ├── schemas/ # Pydantic schemas
│ ├── services/ # Business logic
│ └── data/ # Static data
├── ai-engine/ # AI/RAG pipeline
│ ├── quran_solver.py
│ ├── worker.py
│ ├── prompts/ # Domain-specific prompts
│ └── data/ # Miracle maps
├── database/ # SQL schema & seed data
├── docker-compose.yml
├── .env.example
└── README.md
Contributions are welcome! Please:
هذه المنصة مخصصة للتوجيه العام والاستئناس فقط، وليست بديلاً عن الفتاوى الشرعية المعتمدة من العلماء المتخصصين. يُرجى الرجوع إلى أهل العلم الموثوقين في المسائل الدينية الدقيقة.
This platform is intended for general guidance only and is not a substitute for authoritative religious rulings from qualified scholars. Please consult certified Islamic scholars for precise religious matters.
MIT License — See LICENSE for details.
منصة ذكية تساعدك في إيجاد الإرشاد والتوجيه القرآني لأي موضوع في حياتك
An intelligent platform that helps you find Quranic guidance for any topic in your life, using Artificial Intelligence and Natural Language Processing.
| Layer | Technology |
|---|---|
| Frontend | Next.js 14, TypeScript, Tailwind CSS |
| Backend | Python FastAPI |
| AI Engine | LangChain, OpenAI GPT |
| Database | PostgreSQL |
| Cache | Redis |
| Vector DB | Pinecone |
| Container | Docker & Docker Compose |
# Clone the repository
git clone <repo-url>
cd Interpreting-the-Quran-using-artificial-intelligence
# Setup environment file, then edit .env and add your API keys
make setup
# Build all Docker images
make build
# Start all services
make up
Access:
Useful commands:
make logs # stream logs from all services
make ps # show container status
make down # stop all services
make clean # stop and delete all data
make help # show all available commands
cd frontend
npm install
npm run dev
# Access at http://localhost:3000
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Start without database (demo mode)
uvicorn main:app --reload --port 8000
main (the deployment workflow triggers on pushes to main).NEXT_PUBLIC_API_URL under Settings → Secrets and variables → Actions → Variables.main; workflow .github/workflows/nextjs.yml will build and deploy frontend/out automatically.Notes:
owner/repo), the frontend auto-uses /<repo> as base path during Pages export.<name>.github.io), it automatically deploys from root /.Copy .env.example to .env and fill in:
| Variable | Description | Required |
|---|---|---|
OPENAI_API_KEY | OpenAI API key for AI responses | Optional (demo mode without it) |
PINECONE_API_KEY | Pinecone vector database key | Optional |
POSTGRES_* | PostgreSQL credentials | Optional (in-memory demo) |
NEXT_PUBLIC_API_URL | Backend API URL | Yes |
Note: The platform works in demo mode without any API keys — it returns pre-defined example responses.
POST /api/ask-quran
Content-Type: application/json
{
"question": "كيف يرشدنا القرآن في موضوع الصحة؟",
"category": "medicine"
}
GET /api/quran/search?q=الصبر
GET /api/categories
GET /api/miracles
Full API docs available at /docs when backend is running.
.
├── frontend/ # Next.js 14 + TypeScript + Tailwind CSS
│ └── src/
│ ├── app/ # App router pages
│ ├── components/ # React components
│ ├── lib/ # API client
│ └── types/ # TypeScript interfaces
├── backend/ # Python FastAPI
│ ├── routers/ # API route handlers
│ ├── models/ # SQLAlchemy models
│ ├── schemas/ # Pydantic schemas
│ ├── services/ # Business logic
│ └── data/ # Static data
├── ai-engine/ # AI/RAG pipeline
│ ├── quran_solver.py
│ ├── worker.py
│ ├── prompts/ # Domain-specific prompts
│ └── data/ # Miracle maps
├── database/ # SQL schema & seed data
├── docker-compose.yml
├── .env.example
└── README.md
Contributions are welcome! Please:
هذه المنصة مخصصة للتوجيه العام والاستئناس فقط، وليست بديلاً عن الفتاوى الشرعية المعتمدة من العلماء المتخصصين. يُرجى الرجوع إلى أهل العلم الموثوقين في المسائل الدينية الدقيقة.
This platform is intended for general guidance only and is not a substitute for authoritative religious rulings from qualified scholars. Please consult certified Islamic scholars for precise religious matters.
MIT License — See LICENSE for details.