TheDormouse / FCC-Random-Quote-Machine

Random Quote Machine for the Free Code Camp frontend challenge

Home Page:https://fcc-random-quote-machine-rho.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FCC-Random-Quote-Machine

Random Quote Machine for the Free Code Camp frontend challenge. Added some additional features for SSR and api routes to add more quotes with prisma and postgresql.

Quickstart

  • Add your postgres connection string to .env.example and rename to .env
  • npm i
  • npm run migrate
  • npm run dev

User stories

  • User Story #1: I can see a wrapper element with a corresponding id="quote-box".

  • User Story #2: Within #quote-box, I can see an element with a corresponding id="text".

  • User Story #3: Within #quote-box, I can see an element with a corresponding id="author".

  • User Story #4: Within #quote-box, I can see a clickable element with a corresponding id="new-quote".

  • User Story #5: Within #quote-box, I can see a clickable a element with a corresponding id="tweet-quote".

  • User Story #6: On first load, my quote machine displays a random quote in the element with id="text".

  • User Story #7: On first load, my quote machine displays the random quote's author in the element with id="author".

  • User Story #8: When the #new-quote button is clicked, my quote machine should fetch a new quote and display it in the #text element.

  • User Story #9: My quote machine should fetch the new quote's author when the #new-quote button is clicked and display it in the #author element.

  • User Story #10: I can tweet the current quote by clicking on the #tweet-quotea element. This a element should include the "twitter.com/intent/tweet" path in its href attribute to tweet the current quote.

  • User Story #11: The #quote-box wrapper element should be horizontally centered. Please run tests with browser's zoom level at 100% and page maximized.

About

Random Quote Machine for the Free Code Camp frontend challenge

https://fcc-random-quote-machine-rho.now.sh


Languages

Language:JavaScript 100.0%