{"id":15784421,"url":"https://github.com/muneebhashone/zira","last_synced_at":"2025-03-31T17:24:17.326Z","repository":{"id":253458639,"uuid":"843249434","full_name":"muneebhashone/zira","owner":"muneebhashone","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-16T20:45:00.000Z","size":252,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T20:09:38.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/muneebhashone.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-16T05:17:40.000Z","updated_at":"2024-08-17T11:28:18.000Z","dependencies_parsed_at":"2024-08-16T21:37:43.946Z","dependency_job_id":null,"html_url":"https://github.com/muneebhashone/zira","commit_stats":null,"previous_names":["muneebhashone/zira"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneebhashone%2Fzira","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneebhashone%2Fzira/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneebhashone%2Fzira/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneebhashone%2Fzira/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muneebhashone","download_url":"https://codeload.github.com/muneebhashone/zira/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246506188,"owners_count":20788607,"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-10-04T20:03:11.060Z","updated_at":"2025-03-31T17:24:17.291Z","avatar_url":"https://github.com/muneebhashone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.webp\" width=\"200px\" align=\"center\" alt=\"Zod logo\" /\u003e\n  \u003ch1 align=\"center\"\u003e✨ Zira ✨\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cbr/\u003e\n    Robust backend boilerplate designed for scalability, flexibility, and ease of development. It's packed with modern technologies and best practices to kickstart your next backend project.\n  \u003c/p\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Prerequisites\n\nBefore you get started, make sure you have the following installed on your machine:\n\n- **Docker + Docker Compose**\n- **PNPM**\n- **Node.js 20+ (LTS)**\n\n## How to Run\n\n1. **Set up Docker Services**:\n\n   - Run the following command to start MongoDB and Redis instances locally:\n     ```sh\n     docker compose up -d\n     ```\n\n2. **Install Dependencies**:\n\n   - Use pnpm to install all the necessary dependencies:\n     ```sh\n     pnpm i\n     ```\n\n3. **Configure Environment Variables**:\n\n   - Create a `.env` file in the root directory.\n   - Use the provided `.env.sample` as a template to enter all the required environment variables.\n\n## What's Included\n\n- **OpenAPI Autogenerated Swagger Docs** : Automatically generated Swagger docs through MagicRouter API and Zod, accessible at `/api-docs`.\n- **Auth Module**: Includes Google Sign-In support for easy authentication.\n- **User Management**: Comprehensive user management functionality.\n- **File Upload**: Handles file uploads with Multer and Amazon S3.\n- **Data Validation \u0026 Serialization**: Zod is used for validation and serialization of data.\n- **Configuration Management**: Managed using dotenv-cli and validated with Zod for accuracy and safety.\n- **Middlewares**:\n  - **Authorization**: Built-in authorization middleware.\n  - **Zod Schema Validation**: Ensures your API inputs are correctly validated.\n  - **JWT Extraction**: Easily extract and verify JWT tokens.\n- **Type-safe Email Handling**: Emails are managed using Nodemailer with EJS templating.\n- **Queues**: Powered by BullMQ with Redis for handling background jobs.\n- **ESLint Setup**: Pre-configured ESLint setup for consistent code quality.\n  ```sh\n  pnpm run lint\n  ```\n- **Development Server**: Run the server in development mode using ts-node-dev:\n  ```sh\n  pnpm run dev\n  ```\n- **Build Process**: Efficiently bundle your project using tsup:\n  ```sh\n  pnpm run build\n  ```\n- **PM2 Support**: Out-of-the-box support for PM2 to manage your production processes.\n\n## Roadmap\n\n- **Socket.io Support:** Adding support for Redis adapter and a chat module.\n- **Notification Infrastructure**: Notifications via FCM and Novu.\n- **React-Email and Mailgun Support** : Improve email management with React-Email and Mailgun for more dynamic and flexible email handling.\n- **Ansible Playbook** : Create an Ansible playbook for server configuration to set up a basic environment quickly and consistently.\n- **AWS CDK Support** : Integrate AWS CDK for infrastructure management, making it easier to deploy and manage cloud resources.\n- **Monorepo Support** : Implement monorepo architecture using Turborepo and Pnpm for better project organization and scalability.\n- **AWS Lambda Support** : Add support for deploying serverless functions on AWS Lambda.\n- **Cloudflare Workers Support** : Enable Cloudflare Workers support for edge computing and faster request handling.\n- **Postgres Support with Prisma** : Add support for PostgreSQL using Prisma ORM for better relational database management.\n- **Containerization with Docker** : Implement containerization to ensure the project can be easily deployed to any environment using Docker.\n- **Kubernetes Support** : Integrate Kubernetes for container orchestration, enabling scalable and automated deployment of the application.\n- **CI/CD with GitHub Actions** : Implement a CI/CD pipeline using GitHub Actions to automate testing, building, and deployment processes.\n- **Testing with Jest**: Add support for unit and integration testing using Jest to ensure code reliability and maintainability.\n\n## Contributions\n\nFeel free to contribute to this project by submitting issues or pull requests. Let's build something amazing together!\n\n## **License**\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneebhashone%2Fzira","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuneebhashone%2Fzira","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneebhashone%2Fzira/lists"}