Skip to content

About

A comprehensive Hadith database with original Arabic texts & multi-language translations (English, Urdu, Bengali+), built as a monorepo with Next.js 15, Prisma, and automated import scripts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Hadith Database

A comprehensive, monorepo-based Hadith database application containing original Arabic texts and translations across multiple languages.

Project Structure

This project is structured as a monorepo using Turborepo or a similar workspace manager.

  • apps/admin: A Next.js 15 application providing an administrative interface to view, search, and manage Hadiths and their translations.
  • apps/api: Scripts and utilities used to fetch and synchronize Hadith datasets from external APIs (like fawazahmed0/hadith-api) and populate the database.
  • packages/db: The shared Prisma database client and schema definition.

Features

  • Multi-language Support: Contains Hadith translations in various languages including English, Urdu, Bengali, and more.
  • Original Arabic Text: Includes the original Arabic text for Hadith records.
  • Search Functionality: Search for Hadiths by keyword (in Arabic or translations) or directly by Hadith number.
  • Import Jobs: Automated scripts to keep the local database synchronized with upstream datasets.

Getting Started

To initialize the database schema and generate the Prisma client, run:

npx prisma generate
npx prisma migrate dev --name init

Prerequisites

  • Node.js (v18+)
  • npm / yarn / pnpm
  • A running database instance supported by Prisma (e.g., PostgreSQL, SQLite, etc.)

Installation

  1. Install dependencies from the root directory:

    npm install
  2. Set up the database:

    cd packages/db
    npx prisma generate
    npx prisma db push
  3. Run the development servers:

    npm run dev

    This will start both the Admin UI and any other development services configured in the workspace.

Importing Data

To populate the database with Hadiths and translations, run the import scripts located in apps/api. For example:

cd apps/api
npm run start

(Check the package.json in apps/api for specific import script commands)

License

This project is licensed under the MIT License.

About

A comprehensive Hadith database with original Arabic texts & multi-language translations (English, Urdu, Bengali+), built as a monorepo with Next.js 15, Prisma, and automated import scripts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages