{"id":14984132,"url":"https://github.com/siffahim/typescript-mongoose-express-backend-template","last_synced_at":"2025-06-15T16:33:07.603Z","repository":{"id":248338306,"uuid":"828426406","full_name":"siffahim/typescript-mongoose-express-backend-template","owner":"siffahim","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-23T03:58:18.000Z","size":1855,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T17:50:39.405Z","etag":null,"topics":["bcrypt","dailyrotatefile","eslint","express","jwt","mongodb","mongoose","multer","nodejs","nodemailer","prettier","socket","ts-node-dev","typescript","winston","winston-logger","zod-validation"],"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/siffahim.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-07-14T05:39:35.000Z","updated_at":"2025-01-23T03:58:22.000Z","dependencies_parsed_at":"2024-07-14T06:42:26.253Z","dependency_job_id":"405cb595-9d43-47ba-9a6f-16092b31f0fa","html_url":"https://github.com/siffahim/typescript-mongoose-express-backend-template","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.4285714285714286,"last_synced_commit":"f7c541432a85b80928d24cb835f0889bbc5f3cd5"},"previous_names":["siffahim/typescript-mongoose-express-backend-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siffahim%2Ftypescript-mongoose-express-backend-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siffahim%2Ftypescript-mongoose-express-backend-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siffahim%2Ftypescript-mongoose-express-backend-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siffahim%2Ftypescript-mongoose-express-backend-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siffahim","download_url":"https://codeload.github.com/siffahim/typescript-mongoose-express-backend-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248283849,"owners_count":21077935,"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":["bcrypt","dailyrotatefile","eslint","express","jwt","mongodb","mongoose","multer","nodejs","nodemailer","prettier","socket","ts-node-dev","typescript","winston","winston-logger","zod-validation"],"created_at":"2024-09-24T14:08:30.061Z","updated_at":"2025-04-10T19:51:58.235Z","avatar_url":"https://github.com/siffahim.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=192.0.0.0\n   PORT=5000\n\n   # Bcrypt\n   BCRYPT_SALT_ROUNDS=12\n\n   # JWT\n   JWT_SECRET=jwt_secret\n   JWT_EXPIRE_IN=1d\n\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   ```\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiffahim%2Ftypescript-mongoose-express-backend-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiffahim%2Ftypescript-mongoose-express-backend-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiffahim%2Ftypescript-mongoose-express-backend-template/lists"}