A simple React-based Dictionary App that fetches word definitions, phonetics, examples, and audio pronunciation from a dictionary API. It also includes dark mode and a search history feature.
- ๐ Search for word definitions, phonetics, and examples.
- ๐ Audio pronunciation feature.
- ๐ Dark mode toggle.
- ๐พ Save search history.
- Frontend: React.js, CSS
- API: Free Dictionary API
๐ฆ Dictionary-App
โโโ ๐ src
โ โโโ ๐ components
โ โ โโโ Dictionary.jsx
โ โ โโโ DarkModeToggle.jsx
โ โโโ ๐ assets
โ โ โโโ ๐ animations (for Lottie animations if needed)
โ โโโ App.js
โ โโโ main.jsx
โ โโโ ๐ styles
โ โ โโโ styles.css
โโโ ๐ public
โ โโโ index.html
โ โโโ favicon.png
โโโ .env
โโโ README.md
โโโ package.json
- Clone the repository
git clone https://github.com/shivamsaurabh25/dictionary-app.git cd dictionary-app
- Install dependencies
npm install
- Create a
.env
file and add:VITE_DICTIONARY_API_URL=https://api.dictionaryapi.dev/api/v2/entries/en
- Run the project
npm run dev
- Enter a word in the search bar and click "Search".
- Click the ๐ button to hear the pronunciation.
- Toggle ๐ for dark mode.
- View past searches in the history section.
This project is open-source and free to use under the MIT License.
Pull requests are welcome! Feel free to contribute by improving features or fixing bugs.
If you like this project, โญ star this repository and share it with others!
Happy coding! ๐