This repository contains a simple Node.js and Express-based API that provides Bhagavad Gita quotes.
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.' }
git clone https://github.com/your-username/bhagavad-gita-quotes-api.git
cd bhagavad-gita-quotes-api
npm install
npm start
The API will be accessible at http://localhost:3000/api/random-verse.
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.
Contributions are welcome! If you have additional Bhagavad Gita quotes to share, feel free to submit a pull request.
This project is licensed under the Apache License - see the LICENSE.md file for details.