A simple, lightweight Node.js API that serves random motivational quotes.
The API returns quotes in the following JSON format:
{
"text": "Life is 10% what happens to you and 90% how you react to it.",
"author": "Charles R. Swindoll"
}
npm install
npm start
For development with auto-reload:
npm run dev
/api/quote: Returns a random motivational quoteThe server will run on http://localhost:3000 by default. You can change the port by setting the PORT environment variable.