├── .babelrc ├── .eslintrc.js ├── .gitignore ├── LICENSE ├── README.md ├── __test__ ├── akismet.spec.js ├── e2e.spec.js ├── fixtures │ ├── comment.js │ ├── db.js │ └── moderation-api │ │ ├── no-classification.json │ │ ├── no-review.json │ │ └── review.json └── is-questionable.spec.js ├── db └── index.js ├── jest-mongo.js ├── jest-setup.js ├── jest-teardown.js ├── package.json ├── sampledotenv └── src ├── Id └── index.js ├── comment ├── comment.js ├── comment.spec.js ├── index.js └── source.js ├── controllers ├── delete-comment.js ├── get-comments.js ├── index.js ├── not-found.js ├── patch-comment.js ├── patch-comment.spec.js ├── post-comment.js └── post-comment.spec.js ├── data-access ├── comments-db.js ├── comments-db.spec.js └── index.js ├── express-callback └── index.js ├── index.js ├── is-questionable ├── index.js ├── is-questionable.js └── is-questionable.spec.js └── use-cases ├── add-comment.js ├── add-comment.spec.js ├── edit-comment.js ├── edit-comment.spec.js ├── handle-moderation.js ├── index.js ├── list-comments.js ├── list-comments.spec.js ├── remove-comment.js └── remove-comment.spec.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/README.md -------------------------------------------------------------------------------- /__test__/akismet.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/akismet.spec.js -------------------------------------------------------------------------------- /__test__/e2e.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/e2e.spec.js -------------------------------------------------------------------------------- /__test__/fixtures/comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/fixtures/comment.js -------------------------------------------------------------------------------- /__test__/fixtures/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/fixtures/db.js -------------------------------------------------------------------------------- /__test__/fixtures/moderation-api/no-classification.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/fixtures/moderation-api/no-classification.json -------------------------------------------------------------------------------- /__test__/fixtures/moderation-api/no-review.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/fixtures/moderation-api/no-review.json -------------------------------------------------------------------------------- /__test__/fixtures/moderation-api/review.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/fixtures/moderation-api/review.json -------------------------------------------------------------------------------- /__test__/is-questionable.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/__test__/is-questionable.spec.js -------------------------------------------------------------------------------- /db/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/db/index.js -------------------------------------------------------------------------------- /jest-mongo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/jest-mongo.js -------------------------------------------------------------------------------- /jest-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/jest-setup.js -------------------------------------------------------------------------------- /jest-teardown.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/jest-teardown.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/package.json -------------------------------------------------------------------------------- /sampledotenv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/sampledotenv -------------------------------------------------------------------------------- /src/Id/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/Id/index.js -------------------------------------------------------------------------------- /src/comment/comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/comment/comment.js -------------------------------------------------------------------------------- /src/comment/comment.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/comment/comment.spec.js -------------------------------------------------------------------------------- /src/comment/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/comment/index.js -------------------------------------------------------------------------------- /src/comment/source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/comment/source.js -------------------------------------------------------------------------------- /src/controllers/delete-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/delete-comment.js -------------------------------------------------------------------------------- /src/controllers/get-comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/get-comments.js -------------------------------------------------------------------------------- /src/controllers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/index.js -------------------------------------------------------------------------------- /src/controllers/not-found.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/not-found.js -------------------------------------------------------------------------------- /src/controllers/patch-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/patch-comment.js -------------------------------------------------------------------------------- /src/controllers/patch-comment.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/patch-comment.spec.js -------------------------------------------------------------------------------- /src/controllers/post-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/post-comment.js -------------------------------------------------------------------------------- /src/controllers/post-comment.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/controllers/post-comment.spec.js -------------------------------------------------------------------------------- /src/data-access/comments-db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/data-access/comments-db.js -------------------------------------------------------------------------------- /src/data-access/comments-db.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/data-access/comments-db.spec.js -------------------------------------------------------------------------------- /src/data-access/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/data-access/index.js -------------------------------------------------------------------------------- /src/express-callback/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/express-callback/index.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/index.js -------------------------------------------------------------------------------- /src/is-questionable/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/is-questionable/index.js -------------------------------------------------------------------------------- /src/is-questionable/is-questionable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/is-questionable/is-questionable.js -------------------------------------------------------------------------------- /src/is-questionable/is-questionable.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/is-questionable/is-questionable.spec.js -------------------------------------------------------------------------------- /src/use-cases/add-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/add-comment.js -------------------------------------------------------------------------------- /src/use-cases/add-comment.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/add-comment.spec.js -------------------------------------------------------------------------------- /src/use-cases/edit-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/edit-comment.js -------------------------------------------------------------------------------- /src/use-cases/edit-comment.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/edit-comment.spec.js -------------------------------------------------------------------------------- /src/use-cases/handle-moderation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/handle-moderation.js -------------------------------------------------------------------------------- /src/use-cases/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/index.js -------------------------------------------------------------------------------- /src/use-cases/list-comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/list-comments.js -------------------------------------------------------------------------------- /src/use-cases/list-comments.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/list-comments.spec.js -------------------------------------------------------------------------------- /src/use-cases/remove-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/remove-comment.js -------------------------------------------------------------------------------- /src/use-cases/remove-comment.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-mastery/comments-api/HEAD/src/use-cases/remove-comment.spec.js --------------------------------------------------------------------------------