/bhagavad-geeta-quotes-api

An api that generates a random quotes from the Bhagavad Geeta

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Bhagavad Gita Quotes API

This repository contains a simple Node.js and Express-based API that provides Bhagavad Gita quotes.

Usage

Get a Random Bhagavad Gita Quote To get a random Bhagavad Gita quote, make a GET request to the /api/random-verse endpoint.

Example:

curl http://localhost:3000/api/random-verse

Response:

{ id: 23, text: 'It is better to live your own destiny imperfectly than to live an imitation of somebody else’s life with perfection.' }

Installation and Setup

Clone the repository:

git clone https://github.com/your-username/bhagavad-gita-quotes-api.git
cd bhagavad-gita-quotes-api

Install dependencies:

npm install

Run the server:

npm start

The API will be accessible at http://localhost:3000/api/random-verse.

Data

The Bhagavad Gita quotes data is stored in the bhagavadGitaQuotes array in the index.js file. You can replace this data with your own Bhagavad Gita quotes.

Contributing

Contributions are welcome! If you have additional Bhagavad Gita quotes to share, feel free to submit a pull request.

License

This project is licensed under the Apache License - see the LICENSE.md file for details.