https://github.com/guptag0808/ai-jokes-assignment
https://github.com/guptag0808/ai-jokes-assignment
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/guptag0808/ai-jokes-assignment
- Owner: guptag0808
- Created: 2023-12-02T08:59:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-03T16:44:55.000Z (over 1 year ago)
- Last Synced: 2025-02-08T19:33:29.951Z (4 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.git2. Install dependencies:
- npm install
3. Usage
Fetch Jokes4. To fetch jokes based on a search term:
- node index.js your-search-term
- Save and Rate a Joke5. 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