{"id":15110090,"url":"https://github.com/sm-haris/express-mongo-app","last_synced_at":"2026-02-09T07:05:37.861Z","repository":{"id":255627009,"uuid":"851276251","full_name":"SM-Haris/express-mongo-app","owner":"SM-Haris","description":"This Express Mongoose REST backend app starter template provides a robust foundation for building efficient Node.js applications. It includes user authentication, database integration, authentication middlewares, JWT tokens, logging, and Bcrypt hashing. This template streamlines development and offers a starting point for creating REST APIs","archived":false,"fork":false,"pushed_at":"2024-09-07T15:23:01.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T16:34:28.179Z","etag":null,"topics":["authentication","authorization","express","jwt","logging","mongodb","mongoose","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/SM-Haris.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":"2024-09-02T19:18:16.000Z","updated_at":"2024-09-07T15:23:04.000Z","dependencies_parsed_at":"2024-09-06T11:40:09.792Z","dependency_job_id":"a391ce30-a8ae-4b47-a988-fde22f4f3bc6","html_url":"https://github.com/SM-Haris/express-mongo-app","commit_stats":null,"previous_names":["sm-haris/express-mongo-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SM-Haris/express-mongo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fexpress-mongo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fexpress-mongo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fexpress-mongo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fexpress-mongo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SM-Haris","download_url":"https://codeload.github.com/SM-Haris/express-mongo-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fexpress-mongo-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262704588,"owners_count":23351098,"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":["authentication","authorization","express","jwt","logging","mongodb","mongoose","nodejs","rest-api"],"created_at":"2024-09-25T23:40:50.113Z","updated_at":"2026-02-09T07:05:37.721Z","avatar_url":"https://github.com/SM-Haris.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Mongoose REST Backend App Starter Template\n\n## Introduction\nThis repository provides a well-structured Express Mongoose REST backend app starter template. It offers a strong foundation for building scalable and efficient Node.js applications with the following features:\n\n## Features\n\n* **User Signup, Login, and Authentication:** Implements secure user registration, login, and authentication mechanisms using JWT tokens.\n* **Mongoose Database Integration:** Leverages Mongoose for efficient data management with MongoDB, providing an object-oriented approach.\n* **Complete Backend Architecture:** Adheres to best practices including clean code organization, modularity, and separation of concerns.\n* **Authentication Middlewares:** Enforces authentication and authorization rules throughout the application using custom middleware functions.\n* **JWT Token-Based Authentication:** Employs JWT tokens for secure session management and user verification.\n* **File-Based Logging with Rotation:** Implements file-based logging with daily rotation for easy monitoring and analysis.\n* **Bcrypt Hashing:** Uses Bcrypt for secure password hashing, protecting user credentials.\n* **Advanced Security Policy:** Uses Helmet to ensure secure HTTP policy in security headers.\n\n## Getting Started\n\n### Prerequisites\n\n* **Node.js:** Version 18 or later\n* **npm:** Version 8 or later\n* **Git:** For cloning the repository\n* **A supported database:** Ensure you have a compatible Mongo database system installed and configured \n\n### Clone the Repository\n```Bash\ngit clone https://github.com/SM-Haris/express-mongo-app.git\n```\nUse code with caution.\n\n### Install Dependencies\n```Bash\ncd express-mongo-app\nnpm install\n```\nUse code with caution.\n\n### Environment Variables:\nCreate a .env file (not included in Git) and populate it with the necessary environment variables, such as database connection details, JWT secret, and other application-specific settings.\n\nExample .env file is provided in the repository\n\n### Run the Application\n```Bash\nnpm start\n```\nUse code with caution.\n\n### Run the Application in Development mode:\n```Bash\nnpm run dev\n```\nUse code with caution.\n\n## Usage\nThe application's API endpoints can be accessed using your preferred HTTP client or API testing tool. Refer to your code for specific routes and functionalities.\n\n## Contributing\nWe encourage your contributions to improve this project. Please follow the standard Git workflow for pull requests.\n\n## Disclaimer\nUse this template as a starting point for your own projects. While we strive to provide a robust foundation, security considerations and additional functionalities might be necessary for your specific application requirements.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsm-haris%2Fexpress-mongo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsm-haris%2Fexpress-mongo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsm-haris%2Fexpress-mongo-app/lists"}