https://github.com/janiavdv/csharp-cli
Book recommender command-line application.
https://github.com/janiavdv/csharp-cli
book-recomendation cli-app csharp mongodb mongodb-driver
Last synced: 2 months ago
JSON representation
Book recommender command-line application.
- Host: GitHub
- URL: https://github.com/janiavdv/csharp-cli
- Owner: janiavdv
- Created: 2024-06-06T20:30:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T21:01:44.000Z (about 2 years ago)
- Last Synced: 2025-11-11T23:19:06.403Z (8 months ago)
- Topics: book-recomendation, cli-app, csharp, mongodb, mongodb-driver
- Language: C#
- Homepage:
- Size: 9.72 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C# Command Line Book Recommender
A brief command line app I built to learn C# and the [MongoDB C# Driver](https://www.mongodb.com/docs/drivers/csharp/current/). This project is adapted from [Book Recommender](https://github.com/janiavdv/book-recommender), a similar project with more of a data science flavor which has a [web app](https://janiavdv.shinyapps.io/book_recommender/) to accompany it.
## Use
Clone the repo and run
```shell
cd BookRecommender
dotnet run
```
with MongoDB running on your computer. Replace the `connectionUri` [here](https://github.com/janiavdv/csharp-cli/blob/19d91d4629a38eb015a951c6300ef160b2e83c2f/BookRecommender/Program.cs#L20) if you have changed your local MongoDB port from the default.
Follow the prompts, inputting your name and populating the database with the books. Then, get recommended books using the 'f' action or update your read books to avoid getting them recommended using the 'u' action. To quit the app, use 'q'. To clear your read books, reboot the app and enter 'y' in the opening command that asks if you want to reset the database.
## Data
The data for this application is sourced from the ["Goodbooks 10k Extended" repository](https://github.com/malcolmosh/goodbooks-10k-extended/tree/master), using the `books_enriched.csv` file. This file contains 10,000 records of book data from Goodreads, as of September 2017. Irrelevant columns were removed and the CSV file was cleaned and converted to JSON before being inserted to the database.