A firefox/chrome extension to view defintions as you browse the web.
Project is based on the need that users, many a times, search for the meaning of a word and it's possible for them to forget it when they come across the same word again.
The words browser extension relies on merriam webster dictionary api to query word's defintions. You will need to register an API key to start local development.
To quickly start:
- fork and clone the repo
- run yarn in root directory
- enter
DICT_APIand give it your dictionary api key in.envfile - run
yarn run dev(ornpm run dev) - load extension from
tmpfolder in chrome or firefox
More details in the Prerequisites section.
You first need a copy of the code in your local machine, make sure to fork and clone, you can clone by running this command.
$ git clone https://github.com/chingu-voyage7/Geckos-Team-23.giThe app depends on DICT_API environment variable that hold the dictionary api key. So, make sure to change to the app's root directory and create a .env:
$ cd Geckos-Team-23
$ touch .envOpen the file and fill it with this variable:
# dictionary api key
DICT_API=<dictionary_api_key_goes_here>
To generate needed assets for the app for development run this command (recommended):
$ yarn run dev
or through npm:
$ npm run dev
This will generate the assets in tmp folder in the app's root directory. It also makes gulp watch files for changes so you don't have to re-run it everytime you make a change.
To install for chrome:
- Open the Extension Management page by navigating to
chrome://extensions.
- The Extension Management page can also be opened by clicking on the Chrome menu, hovering over More Tools then selecting Extensions.
- Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the LOAD UNPACKED button and select the extension directory, which in this case is the
tmpfolder in the app's directory.
To install for firefox:
- Navigate to
about:addons - You will see a menu with a gear icon ⚙️, click on it and select Install addon from file...