A modern web application that allows users to look up synonyms and antonyms for any English word using the Thesaurus API. This app features a user-friendly interface, loading indicators, and dynamic content display.
- Search for Words: Enter a word to find its synonyms and antonyms.
- Dynamic Results: View synonyms and antonyms in a responsive layout.
- Loading Spinner: Indicates when data is being fetched.
- Error Handling: Displays appropriate messages if no results are found or if there's an error.
- Frontend: HTML, CSS, JavaScript
- API: Thesaurus API (API-Ninjas)
-
Clone the Repository
git clone https://github.com/RojanSapkota/thesaurus-lookup.git cd thesaurus-lookup
-
Open the Application
Open
index.html
in your browser or use a local server to serve the files. -
API Key Setup
For security reasons, the API key is not directly included in this repository. You need to set up a backend proxy to handle API requests securely.
-
Usage
- Enter a word in the input field.
- Click the "Find" button to fetch synonyms and antonyms.
- View results dynamically displayed on the page.
index.html
: Main HTML structure of the application.styles.css
: Styles for the application layout and design.script.js
: JavaScript file containing the logic to interact with the Thesaurus API and update the UI.
- Fork the repository.
- Create a new branch.
- Make your changes.
- Commit your changes.
- Push to the branch.
- Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or inquiries, please contact Rojan.