- nodejs
- npm
git clone https://github.com/sohammondal/command-line-dictionary-tool.git
cd command-line-dictionary-tool
- DEV
npm install
installs dependenciesnpm run test
run tests
- PROD
npm install -g
makesdict
globally available
dict defn <word>
Display definitions of a given word.dict syn <word>
Display synonyms of a given word.dict ant <word>
Display antonyms of a given word. Note that not all words would have Antonyms (End point: /relatedWords). Example words with antonyms: single, break, start.dict ex <word>
Display examples of usage of a given word in a sentence.dict <word>
Display Word Definitions, Word Synonyms, Word Antonyms & Word Examples for a given word.dict play
Display Word Definitions, Word Synonyms, Word Antonyms & Word Examples for a random word.dict
The command should display a definition, a synonym or an antonym and ask the user to guess the word.
package.json
contains dependencies, node scripts and project descriptionindex.js
entry point of the applib/config
stores configurationlib/apis
contains word apislib/routes
contains rest api word routeslib/middlewares
contains express middlewares errorHandlerlib/util
contains a helper functions to be used throughout the app__tests__
contains the test files