{"id":13602501,"url":"https://github.com/dev-mastery/comments-api","last_synced_at":"2025-05-15T11:08:35.440Z","repository":{"id":37451162,"uuid":"175300705","full_name":"dev-mastery/comments-api","owner":"dev-mastery","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-28T10:59:06.000Z","size":649,"stargazers_count":1940,"open_issues_count":59,"forks_count":645,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-14T19:58:55.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-mastery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-12T21:43:11.000Z","updated_at":"2025-03-31T12:35:55.000Z","dependencies_parsed_at":"2024-01-15T20:47:36.443Z","dependency_job_id":"44e71572-9846-4954-8fe6-86a27020d098","html_url":"https://github.com/dev-mastery/comments-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-mastery%2Fcomments-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-mastery%2Fcomments-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-mastery%2Fcomments-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-mastery%2Fcomments-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-mastery","download_url":"https://codeload.github.com/dev-mastery/comments-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328385,"owners_count":22052632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T18:01:25.656Z","updated_at":"2025-05-15T11:08:35.420Z","avatar_url":"https://github.com/dev-mastery.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# DevMastery Comments Microservice API\nTo manage comments on various Dev Mastery properties.\n\n[Using Clean Architecture for Microservice APIs in Node.js with MongoDB and Express](https://www.youtube.com/watch?v=CnailTcJV_U)\n\n\u003e In this video we talk about Bob Martin's Clean Architecture model and I will show you how we can apply it to a Microservice built in node.js with MongoDB and Express JS - @arcdev1\n\n## Features\n* XSS Protection (via [sanitize-html](https://www.npmjs.com/package/sanitize-html))\n* Flags Spam (via [Akismet](https://akismet.com/))\n* Flags rude or inappropriate language (English only via [Content Moderator](https://contentmoderator.cognitive.microsoft.com))\n* Flags personally identifiable information (English only via [Content Moderator](https://contentmoderator.cognitive.microsoft.com))\n\n## Running Locally\n\n#### Prerequisites\n* [Git](https://git-scm.com/downloads)\n* [Node JS](https://nodejs.org/en/)\n* [Mongo DB](https://www.mongodb.com) (To use the Mongo DB interface as shown in the Mastery Monday youtube video, you need to install Mongo Compass)\n* [Azure Content Moderator account (free)](https://contentmoderator.cognitive.microsoft.com)\n* [Akismet Developer account (free)](https://akismet.com/development/api/#getting-started)\n\n\n#### 1. Clone the repo and install dependencies\n```bash\ngit clone \ncd comments-api\nnpm i\n```\n\n#### 2. Modify the .env file\nSave `sampledotenv` as `.env` and then add your database and Content Moderator + Akismet API details.\n\n#### 3. Startup your MongoDB\nUsually this is just: `mongod` on the command line.\n\n#### 4. Start the server\nTo run in production mode where code is transpiled by Babel into a `dist` folder and run directly in `node`:\n```bash\nnpm start\n```\n\nTo run in development mode where code is run by [babel-node](https://babeljs.io/docs/en/babel-node) via [nodemon](https://nodemon.io) and re-transpiled any time there is a change:\n```bash\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-mastery%2Fcomments-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-mastery%2Fcomments-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-mastery%2Fcomments-api/lists"}