This is a simple web application that fetches the Bored API to return a random activity a person can practice/do in a moment of boredom.
Also, it fetches a random quote from the ZenQuotes API and returns the quote alongside with its author to bring you few seconds of reflection.
As a extra feature, it translates both responses into Portuguese using the Google Translate API. The translated quote and activity are then displayed on the webpage.
- Node.js (v12 or higher)
- Google Translate API key
- Clone the repository:
git clone https://github.com/onativo/imBored.git
- Install the dependencies:
cd random-quote-translator
npm install
3.Set up your Google Translate API key:
Sign up for the Google Translate API and obtain an API key.
Create a config.js
file exporting your apiKey. Import it again inside /src/scripts.js
.
- Start the server:
node index.js
- Open your web browser and navigate to http://localhost:3000 to see the application in action.
This project is licensed under the MIT License.
Feel free to modify the README.md file as needed to include additional details or instructions specific to your project.