{"id":28565646,"url":"https://github.com/r2hu1/nitro-backend","last_synced_at":"2026-04-29T09:04:23.007Z","repository":{"id":296518095,"uuid":"993659386","full_name":"r2hu1/nitro-backend","owner":"r2hu1","description":"🚀 Reusable backend template built with NitroJS – fast, modular, and ready for quick backend devlopment!","archived":false,"fork":false,"pushed_at":"2025-06-01T09:28:15.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-10T14:44:36.039Z","etag":null,"topics":["backend","javascript","nitrojs","template"],"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/r2hu1.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,"zenodo":null}},"created_at":"2025-05-31T08:31:24.000Z","updated_at":"2025-06-02T17:36:39.000Z","dependencies_parsed_at":"2025-05-31T20:15:47.117Z","dependency_job_id":null,"html_url":"https://github.com/r2hu1/nitro-backend","commit_stats":null,"previous_names":["r2hu1/nitro-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r2hu1/nitro-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2hu1%2Fnitro-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2hu1%2Fnitro-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2hu1%2Fnitro-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2hu1%2Fnitro-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r2hu1","download_url":"https://codeload.github.com/r2hu1/nitro-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2hu1%2Fnitro-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backend","javascript","nitrojs","template"],"created_at":"2025-06-10T14:30:51.213Z","updated_at":"2026-04-29T09:04:23.001Z","avatar_url":"https://github.com/r2hu1.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nitro Backend Starter\n\nA lightweight and modular backend template built with [Nitro](https://nitro.build/), designed to accelerate the development of secure and scalable APIs. This starter kit integrates essential features like JWT authentication, encryption, and database connectivity, making it an ideal foundation for modern web applications.\n\n## Features\n\n* **Nitro-Powered**: Utilizes Nitro, a next-generation server toolkit, for rapid development and deployment.\n* **JWT Authentication**: Implements JSON Web Token (JWT) for secure user authentication.\n* **Nodemailer**: Send email's pogrammitically.\n* **Encryption**: Includes built-in mechanisms for data encryption to enhance security. (nodejs - crypto)\n* **Database Integration**: Pre-configured to connect with databases, facilitating data management. ( mongodb with mongoose)\n* **Modular Structure**: Organized codebase promoting scalability and maintainability.\n\n## Getting Started\n\n### Prerequisites\n\n* Node.js (version 16 or higher)\n* Package Manager: [pnpm](https://pnpm.io/) or [npm](https://npmjs.org/)\n\n### Installation\n\n1. **Clone the Repository**:\n\n   ```bash\n   git clone https://github.com/r2hu1/nitro-backend.git\n   cd nitro-backend\n   ```\n\n\n\n2. **Install Dependencies**:\n\n   ```bash\n   pnpm install\n   ```\n\n\n\n3. **Configure Environment Variables**:\n\n   Create a `.env` file in the root directory and populate it based on the `.env.example` provided.\n\n4. **Run the Development Server**:\n\n   ```bash\n   pnpm dev\n   ```\n\n\n\nThe server should now be running at `http://localhost:3000`.\n\n## Project Structure\n\n```\n├── server\n│   ├── middleware\n│   │   ├── cors.ts\n│   │   └── index.ts\n│   ├── models\n│   │   ├── otp.ts\n│   │   └── user.ts\n│   ├── plugins\n│   │   ├── env.ts\n│   │   └── mongoose.ts\n│   ├── routes\n│   │   ├── auth\n│   │   │   ├── forgot-password.post.ts\n│   │   │   ├── login.post.ts\n│   │   │   ├── register.post.ts\n│   │   │   └── reset-password.post.ts\n│   │   ├── email\n│   │   │   └── send-otp.get.ts\n│   │   ├── index.ts\n│   │   └── user\n│   │       ├── delete.delete.ts\n│   │       ├── get.get.ts\n│   │       └── verify-otp.post.ts\n│   └── utils\n│       ├── auth.ts\n│       ├── crypto.ts\n│       ├── db_helper\n│       │   ├── connect.ts\n│       │   └── save-otp.ts\n│       └── mail_helper\n│           └── send-email.ts\n├── package.json\n├── nitro.config.ts\n├── pnpm-lock.yaml\n├── pnpm-workspace.yaml\n├── README.md\n└── tsconfig.json\n\n```\n\n\n\n## Scripts\n\n* **Start Development Server**: `pnpm dev`\n* **Build for Production**: `pnpm build`\n* **Start Production Server**: `pnpm start`\n\n## Contributing\n\nContributions are welcome! If you have suggestions for improvements or encounter any issues, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Acknowledgements\n\n* [Nitro](https://nitro.build/) for the powerful server toolkit.\n* [UnJS](https://github.com/unjs) for maintaining Nitro and related tools.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr2hu1%2Fnitro-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr2hu1%2Fnitro-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr2hu1%2Fnitro-backend/lists"}