{"id":30217084,"url":"https://github.com/muhammadranju/modules-ts-template","last_synced_at":"2026-04-11T01:53:47.683Z","repository":{"id":309113213,"uuid":"1033984990","full_name":"muhammadranju/modules-ts-template","owner":"muhammadranju","description":"This is a template project for backend development using Typescript, Node.js, Express, Mongoose, Bcrypt, JWT, NodeMailer, Multer, ESLint, and Prettier. The aim is to reduce setup time for new backend projects.","archived":false,"fork":false,"pushed_at":"2025-08-09T22:04:47.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T00:09:57.403Z","etag":null,"topics":["authentication","authorization","express","mongodb","nodejs","reastful-api","requests","ts-none","typescript"],"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/muhammadranju.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-08-07T16:48:25.000Z","updated_at":"2025-08-09T22:04:50.000Z","dependencies_parsed_at":"2025-08-10T00:10:00.305Z","dependency_job_id":"a7ae7f05-f665-4258-884a-c63e88e7593d","html_url":"https://github.com/muhammadranju/modules-ts-template","commit_stats":null,"previous_names":["muhammadranju/modules-ts-template"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/muhammadranju/modules-ts-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fmodules-ts-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fmodules-ts-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fmodules-ts-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fmodules-ts-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhammadranju","download_url":"https://codeload.github.com/muhammadranju/modules-ts-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadranju%2Fmodules-ts-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270364032,"owners_count":24571399,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["authentication","authorization","express","mongodb","nodejs","reastful-api","requests","ts-none","typescript"],"created_at":"2025-08-14T04:38:40.225Z","updated_at":"2026-04-11T01:53:40.257Z","avatar_url":"https://github.com/muhammadranju.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Name\n\nThis is a template project for backend development using Typescript, Node.js, Express, Mongoose, Bcrypt, JWT, NodeMailer, Multer, ESLint, and Prettier. The aim is to reduce setup time for new backend projects.\n\n## Features\n\n- **Authentication API:** Complete authentication system using JWT for secure token-based authentication and bcrypt for password hashing.\n- **File Upload:** Implemented using Multer with efficient file handling and short-term storage.\n- **Data Validation:** Robust data validation using Zod and Mongoose schemas.\n- **Code Quality:** Ensured code readability and quality with ESLint and Prettier.\n- **Email Service:** Sending emails through NodeMailer.\n- **File Handling:** Efficient file deletion using `fs.unlink`.\n- **Environment Configuration:** Easy configuration using a `.env` file.\n- **Logging:** Logging with Winston and file rotation using DailyRotateFile.\n- **API Request Logging:** Logging API requests using Morgan.\n\n## Tech Stack\n\n- Typescript\n- Node.js\n- Express\n- Mongoose\n- Bcrypt\n- JWT\n- NodeMailer\n- Multer\n- ESLint\n- Prettier\n- Winston\n- Daily-winston-rotate-file\n- Morgen\n- Socket\n\n## Getting Started\n\nFollow these steps to set up and run the project locally.\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- Node.js\n- npm or yarn\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/yourusername/your-repository.git\n   cd your-repository\n   ```\n\n2. **Install dependencies:**\n\n   Using npm:\n\n   ```bash\n   npm install\n   ```\n\n   Using yarn:\n\n   ```bash\n   yarn install\n   ```\n\n3. **Create a `.env` file:**\n\n   In the root directory of the project, create a `.env` file and add the following variables. Adjust the values according to your setup.\n\n   ```env\n   # Basic\n   NODE_ENV=development\n   DATABASE_URL=mongodb://127.0.0.1:27017/project_name\n   IP_ADDRESS=10.10.7.101\n   PORT=5000\n   #Bcrypt\n   BCRYPT_SALT_ROUNDS=12\n   #JWT\n   JWT_SECRET=jwt_secret\n   #Email\n   EMAIL_FROM=email@gmail.com\n   EMAIL_USER=email@gmail.com\n   EMAIL_PASS=mkqcfjeqloothyax\n   EMAIL_PORT=587\n   EMAIL_HOST=smtp.gmail.com\n   SUPER_ADMIN_EMAIL=admin@gmail.com\n   SUPER_ADMIN_PASSWORD=12345678\n   ```\n\n4. **Run the project:**\n\n   Using npm:\n\n   ```bash\n   npm run dev\n   ```\n\n   Using yarn:\n\n   ```bash\n   yarn run dev\n   ```\n\n### Running the Tests\n\nExplain how to run the automated tests for this system.\n\n```bash\nnpm test\n```\n\n# TS-Template\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadranju%2Fmodules-ts-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammadranju%2Fmodules-ts-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadranju%2Fmodules-ts-template/lists"}