unknown 52c00ce8c5 add delete image | 2 years ago | |
---|---|---|
bin | 2 years ago | |
config | 2 years ago | |
controllers | 2 years ago | |
coverage | 2 years ago | |
helpers | 2 years ago | |
images | 2 years ago | |
model | 2 years ago | |
notifications | 2 years ago | |
routes | 2 years ago | |
validation | 2 years ago | |
.eslintignore | 2 years ago | |
.eslintrc.js | 2 years ago | |
.gitignore | 2 years ago | |
app.js | 2 years ago | |
jest.config.js | 2 years ago | |
nodemon.json | 2 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
homework number 3 ,I have to use ODM mongoDb and mongoose for set portal between them like on previous homework when i used local db when i saved data local with fs.readFile and write file in json format.Also i have changed structure about logic introduced controllers and divine with bigger abstraction than it was for understanding and easy support.Did some fix with validation and create Schema for mongoose with additional validation fields and one of them want highlight it's validation _id cross objectId() .