A comprehensive, monorepo-based Hadith database application containing original Arabic texts and translations across multiple languages.
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 (likefawazahmed0/hadith-api) and populate the database.packages/db: The shared Prisma database client and schema definition.
- 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.
To initialize the database schema and generate the Prisma client, run:
npx prisma generate
npx prisma migrate dev --name init- Node.js (v18+)
- npm / yarn / pnpm
- A running database instance supported by Prisma (e.g., PostgreSQL, SQLite, etc.)
-
Install dependencies from the root directory:
npm install
-
Set up the database:
cd packages/db npx prisma generate npx prisma db push -
Run the development servers:
npm run dev
This will start both the Admin UI and any other development services configured in the workspace.
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)
This project is licensed under the MIT License.