{"id":21753832,"url":"https://github.com/melardev/apiblogexpressmongoose","last_synced_at":"2026-04-12T17:08:59.475Z","repository":{"id":107256080,"uuid":"171670190","full_name":"melardev/ApiBlogExpressMongoose","owner":"melardev","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-03T08:46:38.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T23:37:28.851Z","etag":null,"topics":["api","blog","cms","express","full-stack","fullstack","mongoose","node","nodejs","orm","orm-framework","rest"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melardev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-20T12:35:27.000Z","updated_at":"2019-03-03T08:46:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbc1f414-0d2f-4c7c-b708-05f811ab5764","html_url":"https://github.com/melardev/ApiBlogExpressMongoose","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/melardev%2FApiBlogExpressMongoose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiBlogExpressMongoose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiBlogExpressMongoose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiBlogExpressMongoose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melardev","download_url":"https://codeload.github.com/melardev/ApiBlogExpressMongoose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244728200,"owners_count":20500023,"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":["api","blog","cms","express","full-stack","fullstack","mongoose","node","nodejs","orm","orm-framework","rest"],"created_at":"2024-11-26T09:11:48.991Z","updated_at":"2026-04-12T17:08:59.447Z","avatar_url":"https://github.com/melardev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nApi Blog application built wit NodeJs Express and Mongoose, project far from finished.\n\n# Play with the models\n```js\ndb.comments.count({replies: {$exists: true, $not: {$size: 0}}})\ndb.post.find({'author.$id': 'foo'})\ndb.users.count({roles: {$exists: true, $in: [ObjectId('5c00ff848e15881074f622f6')]}})\ndb.comments.count({replies: {$exists: true, $not: {$size: 0}})\ndb.comments.aggregate({$project: { numberOfReplies: {$size: '$replies'}}})\n\n// count replies count\n// inline, from https://glassonionblog.wordpress.com/2013/04/07/mongodb-aggregate-lengths-of-neste-arrays/\ndb.comments.mapReduce(function(){emit('replies', {count: this.replies.length});}, function(key,values){var result={count:0}; values.forEach(function(value){result.count +=value.count;});return result}, {out: {inline:1}})\n{ $where: \"this.following.length \u003e 1\" }\n```\n\n# TODO\n- Populate comments_count in articles.index\n- Seed likes\n- Refactor the user subscriptions(following/follower pattern)\n- Improve seeding user subscriptions, it does not check if already following\n- Fix comments not showing in dto. ArticleController.getBySlugOrId\n- Refractor user model, I use pdkfb2 which i replaced by bcrypt\n- Replace bcrypt-nodejs by bcrypt\n- Customize Passport unauthorized response\n- Get by tag Name, working only for by tag Id\n- Move the param loaders to app.js\n- The first time the seed runs, the users array contains a bunch of nulls\nthis is the reason why comments have user = null, fix it.\n- Improve error messages, for example if article creation fails\n- Find a way to paginate user subscriptions\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelardev%2Fapiblogexpressmongoose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelardev%2Fapiblogexpressmongoose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelardev%2Fapiblogexpressmongoose/lists"}