{"id":26491737,"url":"https://github.com/danielc92/node-express-mongoose-api","last_synced_at":"2026-04-10T06:45:17.362Z","repository":{"id":46258916,"uuid":"195150065","full_name":"danielc92/node-express-mongoose-api","owner":"danielc92","description":"Building an API using Node, Express and MongoDB.","archived":false,"fork":false,"pushed_at":"2022-12-22T11:38:43.000Z","size":3463,"stargazers_count":0,"open_issues_count":10,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T23:02:03.516Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielc92.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}},"created_at":"2019-07-04T01:41:35.000Z","updated_at":"2019-07-11T04:18:48.000Z","dependencies_parsed_at":"2023-01-30T08:00:25.951Z","dependency_job_id":null,"html_url":"https://github.com/danielc92/node-express-mongoose-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/danielc92%2Fnode-express-mongoose-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-express-mongoose-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-express-mongoose-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-express-mongoose-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielc92","download_url":"https://codeload.github.com/danielc92/node-express-mongoose-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244583173,"owners_count":20476233,"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":"2025-03-20T08:50:29.033Z","updated_at":"2025-12-30T20:55:48.726Z","avatar_url":"https://github.com/danielc92.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodejs, Express.js, MongoDB API\nCreating a robust, secure and scalabale API, with authorization, querying, pagination, logging system and full create/read/update/delete (CRUD) functionality.\n\n- `Nodejs` runtime environment for javascript\n- `Express.js` Web framework for API\n- `morgan` Logging middleware\n- `bcrypt` Hasher package for passwords\n- `jsonwebtoken` jwt package for securing endpoints\n- `mongoose` ODM for mongodb, provides validation and modelling of database\n- `mongoose-paginate-v2` Robust paginator plugin for mongoose models\n\n\n# Before you get started\n- NOSQL databases (Mongodb)\n- API and relevant HTTP methods (POST, GET, PATCH, DELETE)\n- Bcrypt/json web tokens\n- Javascript (ES6)\n- Nodejs \n\n# Setup\n\n**Installing Depencendies**\n\nDependencies and versions are listed in the package.json \"dependencies\" key, and can be installed via the following command from root:\n\n```sh\nnpm install\n```\n\n**Installation of nodemon (optional)**\n\nThis project uses nodemon for hot reloading\nI installed it globally using:\n\n```sh\nnpm install nodemon -g\n```\n\n**Installation of Mongodb**\n\nThis project requires `Mongodb` instance (currently configured to localhost (127.0.0.1) on port 27107)\n\n**Installation of Node**\n\nThis project requires `nodejs` to run.\n\n**Starting the dev server**\n\n`nodemon` will auto reload the server upon file changes.\n\n```sh\nnodemon server.js\n```\n\n# Tests\n- Retrieving cities with **GET** method in postman.\n- Deleting a city with **DELETE** method in postman.\n- Updating a city with **PATCH** method in postman.\n- Creating a city with **POST** method in postman.\n- Creating a new account via /api/auth/register.\n- Restricting DELETE, PATCH, POST city routes to authenticated users.\n\n# Contributors\n- Daniel Corcoran\n\n# Sources\n- [Mongoose Documentation](https://mongoosejs.com/)\n- [Express Documentation](https://expressjs.com/)\n- [Morgan Logger](https://www.npmjs.com/package/morgan/v/1.1.1)\n- [Handling Authentication and Authorization with Node](https://medium.com/quick-code/handling-authentication-and-authorization-with-node-7f9548fedde8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielc92%2Fnode-express-mongoose-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielc92%2Fnode-express-mongoose-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielc92%2Fnode-express-mongoose-api/lists"}