Thirukural API is developed to provide efficient access to the Thirukkural and its contents. Special thanks to Thirukkural repo by tk120404 and tshrinivasan for their comprehensive compilation of Thirukurals, chapters, subgroups, and more.
- Node.js
- Express.js
- Clone the repository:
git clone https://github.com/Alien501/thirukural
- Navigate to the backend directory:
cd backend
- Install the dependencies:
npm install
- Start the server in development mode:
npm run dev
- Start the server in production mode:
npm run start
The server will be running on https://localhost:3000
.
Currently, only GET methods are available. POST and PUT methods will be considered in the future.
Retrieve all data from details.json
.
GET /api/v1/getdetails
-
Fetch by Section (Paal)
GET /api/v1/getdetails/paal?name=<section_name>
- Valid values for
section_name
are:- aram
- porul
- inbam
- Valid values for
-
Fetch All Sections
GET /api/v1/getdetails/paal/all
-
Fetch by Chapter Group (Iyal)
GET /api/v1/getdetails/iyal?name=<chapter_group_name>
- Valid values for
chapter_group_name
are:- pay: பாயிரவியல்
- ila: இல்லறவியல்
- thur: துறவறவியல்
- ula: ஊழியல்
- ara: அரசியல்
- ama: அமைச்சியல்
- aran: அரணியல்
- koozh: கூழியல்
- pada: படையில்
- nat: நட்பியல்
- kud: குடியியல்
- ozh: ஒழிபியல்
- kal: களவியல்
- kar: கற்பியல்
- Valid values for
-
Fetch All Chapter Groups
GET /api/v1/getdetails/iyal/all
-
Fetch by Chapter (Adhigaram)
GET /api/v1/getdetails/adhigaram?no=<Adhigaram_No>
-
Fetch All Chapters
GET /api/v1/getdetails/adhigaram/all
-
Fetch Random Kural
GET /api/v1/kural/random
-
Fetch Kurals by Range
GET /api/v1/kural/range/:range
- Example:
/api/v1/kural/range/1-10
- Example:
-
Fetch Kural by Number
GET /api/v1/kural/:kno
- Example:
/api/v1/kural/1
- Example:
For now you can try/use these API endpoints through following URL:
https://thirukural-six.vercel.app/api/v1
This is the frontend of the Thirukural application, built using React, NextUI, and Tailwind CSS. The frontend provides a user-friendly interface to access and interact with the Thirukural API.
- React
- NextUI
- Tailwind CSS
- React Router
- Vercel Analytics
- Clone the repository:
git clone https://github.com/Alien501/thirukural
- Navigate to the project directory:
cd client
- Install the dependencies:
npm install
- Start the development server:
npm run dev
The application will be running on http://localhost:5173
.
The application uses React Router for client-side routing. Below are the main routes:
- Home Page:
/
- About Page:
/about
- Adhigaram Page:
/adhigaram
- Kural Page:
/kural/:r
- Iyal Page:
/iyal
- Paal Page:
/paal
Vercel Analytics is integrated to track user interactions and gather insights.
The application leverages NextUI for UI components and Tailwind CSS for utility-first styling.
Feel free to open issues or submit pull requests. Contributions are welcome!