Skip to content

Files

Latest commit

 

History

History
55 lines (34 loc) · 1.43 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.43 KB

Random Quote Translator

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.

Prerequisites

  • Node.js (v12 or higher)
  • Google Translate API key

Getting Started

  1. Clone the repository:
git clone https://github.com/onativo/imBored.git
  1. 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.

  1. Start the server:
  node index.js
  1. Open your web browser and navigate to http://localhost:3000 to see the application in action.

License

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.


Application homepage