Skip to content

React App that lets people view and vote on cheesy jokes from icanhazdadjoke API

Notifications You must be signed in to change notification settings

ahmedalam98/Dad-Jokes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Font-Awesome Vercel


Logo

Dad Jokes

View Demo · Report Bug

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing

About The Project

React App that lets people view and vote on cheesy jokes from icanhazdadjoke API

Preview

Features

  • List jokes fetched from icanhazdadjoke API, along with:
    • "vot-up" Button
    • "vot-down" Button
    • net score for each joke
  • User can vote and net score should update
  • Should show loading state when loading jokes
  • Should show the jokes sorted by net score, and update this as the scores changes on each fetch
  • Should show dynamic vote-border-color and emoji based on joke net vote score
  • Should persist the list of jokes in local storage
    • When user visit the app, it should show saved jokes, rather than fetching new jokes, However the user should still be able to generate new jokes via the "New Jokes" button, and these new jokes should update the ones in local storage.

(back to top)


Getting Started

This project require some perquisites and dependencies to be installed, you can view it online using this demo. or you can find the instructions below:

To get a local copy, follow these simple steps :

Installation

installing Locally

  1. Clone the repo

    git clone https://github.com/ahmedalam98/Dad-Jokes.git
  2. go to project folder

    cd DAD-JOKES
  3. install dependencies

    npm install --force
  4. Run development server

    npm start

Ports and EndPoints

Ports

  • FrontEnd Development Server runs on port 3000

API endpoints

(back to top)


Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)