Skip to content

This Node.js application allows users to search for jokes based on a provided search term and tracks user responses to jokes, creating a leaderboard of the most liked jokes

Notifications You must be signed in to change notification settings

0AvinashMohanDev1/youcanmakejokes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youcanmakejokes

This Node.js application allows users to search for jokes based on a provided search term and tracks user responses to jokes, creating a leaderboard of the most liked jokes.

Prerequisites

  • Node.js installed on your machine

Getting Started

  1. Clone the repository to your local machine:

    git clone <repository-url>
  2. Navigate to the project directory:

    cd <project-directory>
  3. Install dependencies:

    npm install
  4. Run the application:

    node <filename.js> <operation> <search-term>
    • <filename.js>: The name of the JavaScript file (e.g., index.js).
    • <operation>: Use searchTerm to search for jokes or leaderBoard to view the leaderboard.
    • <search-term>: The word to search for jokes (applicable only for the searchTerm operation).

Operations

1. Search for Jokes

To search for jokes based on a specific term:

node index.js searchTerm <word>

Replace <word> with the term you want to search for jokes.

2. View Leaderboard

To view the leaderboard of the most liked jokes:

node index.js leaderBoard

Feedback

After each displayed joke, the application prompts the user to provide feedback by answering whether they liked the joke. The feedback is recorded, and the leaderboard is updated accordingly.


About

This Node.js application allows users to search for jokes based on a provided search term and tracks user responses to jokes, creating a leaderboard of the most liked jokes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published