A dictionary server built using Nodejs, Expressjs and MongoDB. The server serves data of words when requested. The server is currently hosted on Heroku platform with link.
- Install Nodejs and npm and MongoDB.
- Clone the repository to your device.
npm install
to install the required dependencies.- Change the mongoose connection string (
DB_CONNECT
) to your own string that connects to your MongoDB cluster. npm start
to start the server.
-
GET '/word/<your_word>/definitions' :
Returns definitions of the requested word.
Output format : List of Strings -
GET '/word/<your_word>/antonyms' :
Returns antonyms of the requested word.
Output format : List of Strings -
GET '/word/<your_word>/synonyms' :
Returns synonyms of the requested word.
Output format : List of Strings -
GET '/word/<your_word>/examples' :
Returns examples of the requested word.
Output format : List of Strings -
GET '/word/<your_word>/allInfo' :
Returns all the information of the requested word.
Output format : Object containing information -
GET '/words' :
Returns a random word with all its information.
Output format : Object containing information