Backend is used as a proxy for Quote of the day application. There are two endpoints:
- GET /quote - Fetches quote of the day from Paper Quotes API.
- GET /ImageUrl - Fetches image data from Unsplash.com API and returns image url with custom size.
Application hosted on Heroku.
Check out repository and navigate to it:
git clone https://github.com/Kurdiumov/quote-of-the-day-backend.git
cd quote-of-the-day-backend
Install dependencies using npm:
npm install
Start express server using the following command:
npm run start
Server will be started by default on port 5000.
API keys should be obtained and configured for Paper Quotes and Unsplash services. Create .env file in root folder and insert the following settings replacing values with your API keys:
UNSPLASH_API_KEY=Your Unsplash API key PAPER_QUOTES_API_KEY=Your Paper Quotes API key
This project is licensed under the terms of the MIT license.