https://github.com/cellie0320/movie-details-cli-app
https://github.com/cellie0320/movie-details-cli-app
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cellie0320/movie-details-cli-app
- Owner: Cellie0320
- License: apache-2.0
- Created: 2024-05-22T12:24:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-14T12:00:35.000Z (10 months ago)
- Last Synced: 2025-02-08T10:46:18.864Z (4 months ago)
- Language: JavaScript
- Size: 1.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Movie Details CLI App
This is a Command Line Interface (CLI) application that fetches movie details from the OMDb API. The application prompts the user to enter a movie title and returns a JSON object with the movie's title, year, IMDb rating, language, and plot.
## Features
- Makes HTTP requests to the OMDb API using the `request` NPM module.
- Gets a JSON object that includes the movie's title, year, IMDb rating, language, and plot.
- Interacts with the user through the command line.
- Continuously prompts the user for movie titles until the user types "exit".## Prerequisites
- [Node.js](https://nodejs.org/) installed on your machine.
- OMDb API key. You can obtain one by signing up at [OMDb API](http://www.omdbapi.com/apikey.aspx).## Installation
1. Clone the repository:
```bash
git clone
cd
```2. Install the necessary dependencies:
```bash
npm install request readline
```## Configuration
Replace the placeholder API key in the `api.js` file with your actual OMDb API key:
```javascript
const Configuration = {
omdb: {
apiKey: 'your-omdb-api-key', // Replace with your OMDb API Key
}
};
````## License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.Copyright [2024] [Marcel De Lange].