The task is to create a simple Vocabulary web app by using
- BACKEND: NodeJS, MongoDB, ExpressJS and Oxford Dictionaries Developer API
- FRONTEND: ReactJS, Redux and MUI
- Word Model
{
id: {
type: String,
trim: true,
required: true
},
word: {
type: String,
required: true
},
language: String,
lexicalEntries: [{
entries: [{
etymologies: [String],
pronunciations: [{
audioFile: {
type: String,
required: true
},
dialects: [String],
phoneticNotation: {
type: String,
required: true
},
phoneticSpelling: {
type: String,
required: true
}
}],
senses: [{
definitions: [String],
examples: [{
text: String
}],
id: String,
shortDefinitions: [String]
}]
}],
language: String,
lexicalCategory: {
id: {
type: String,
required: true
},
text: {
type: String,
required: true
}
},
text: String
}]
}, {
timestamps: true
}
- Allow the client to fetch all vocabulary's list (
words
collection). - On success - Return HTTP status
200
. Also return the vocabulary documents list. The response should be a JSON object like this - On error - Return a suitable error message with a valid HTTP status code. The response should be a JSON object like this
- Allow the client to search from vocabulary's (
words
collection). - On success - Return HTTP status
200
. Also return the vocabulary documents list. The response should be a JSON object like this - On error - Return a suitable error message with a valid HTTP status code. The response should be a JSON object like this
- Allow the client to add words to the
words
collection. - check the particular word is exist in Oxford Dictionaries Developer API then add all field-values to
words
collection - On success - Return HTTP status
200
. Also return the vocabulary documents list. The response should be a JSON object like this - On error - Return a suitable error message with a valid HTTP status code. The response should be a JSON object like this
{
status: true,
message: "",
data: { ... }
}
{
status: false,
message: ""
}