An open API service indexing awesome lists of open source software.

https://github.com/guptag0808/ai-jokes-assignment


https://github.com/guptag0808/ai-jokes-assignment

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Joke CLI Tool

Embark on a comedic journey with our Node.js-powered Command Line Tool! This tool leverages the "icanhazdadjoke" API, allowing users to search for and rate jokes, with a dynamic leaderboard showcasing the most hilariously rated gems

## Presentation video link
https://drive.google.com/file/d/1Vf2dTLKC0wonmb2RHFfaWhFRyPw6txdS/view?usp=sharing
## Features

- Fetch jokes from the "icanhazdadjoke" API based on a search term.
- Add a humorous twist to the fetched jokes.
- Save jokes along with user ratings to a `jokes.txt` file.
- View the highest-rated joke on the leaderboard.

## Requirements

- Node.js
- npm (Node Package Manager)

## Installation

1. Clone the repository:

```bash
git clone https://github.com/guptag0808/Ai-Jokes-Assignment.git

2. Install dependencies:

- npm install
3. Usage
Fetch Jokes

4. To fetch jokes based on a search term:

- node index.js your-search-term
- Save and Rate a Joke

5. To save and rate a joke:

- node index.js your-search-term
- Follow the prompts to rate the joke out of 5.

View Leaderboard
6. To view the highest-rated joke on the leaderboard:
- node index.js leaderboard

- Fetch jokes about "Money":
-Example
- node index.js Money