A command-line interface (CLI) application that allows users to search for words and add new words to a MongoDB-based dictionary.
-
Clone the repository:
git clone https://github.com/KatanaSword/dictionary-lookup-cli.git cd dictionary-lookup-cli
-
Create a virtual environment and activate it:
python -m venv .venv .\.venv\Scripts\activate # On Mac use `source .venv/bin/activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set up your environment variables: Create a
.env
file in the project root directory and add your MongoDB connection string:MONGODB_URL=your_mongodb_connection_string_here
Run the Dictionary Lookup CLI:
python app.py
Follow the on-screen menu to search for a word or add a new word to the dictionary:
- Search Word in Dictionary
- Add New Word to Dictionary
- Exit App
MONGODB_URL: Your MongoDB connection string for accessing the dictionary collection.
This project is licensed under the MIT License - see the LICENSE
file for details.