/random_quote_machine

Primary LanguageJavaScriptMIT LicenseMIT

Random Quote Machine

This project is a Random Quote Machine built as part of the freeCodeCamp Front End Development Libraries certification. It dynamically displays quotes using HTML, CSS, and JavaScript with the React framework.

Project Objective

The application displays random quotes with functionalities to get a new quote or tweet the current one, fulfilling the following user stories:

User Story Implementation
Wrapper element with id="quote-box" ✔️
Element with id="text" within #quote-box ✔️
Element with id="author" within #quote-box ✔️
Clickable element with id="new-quote" within #quote-box ✔️
Clickable a element with id="tweet-quote" within #quote-box ✔️
Display random quote on first load in #text ✔️
Display random quote's author on first load in #author ✔️
Fetch new quote on #new-quote button click ✔️
Fetch new quote's author on #new-quote button click ✔️
Tweet current quote via #tweet-quote ✔️
#quote-box is horizontally centered ✔️

Technologies Used

  • HTML
  • CSS (Bootstrap)
  • JavaScript
  • React

Installation and Setup

  1. Clone the repository:
    git clone https://github.com/pxcfbof/random-quote-machine.git
  2. Navigate to the project directory:
    cd random-quote-machine
  3. Install dependencies:
    npm install
  4. Start the application:
    npm start
    

The application will be available at localhost:3000.