{"id":29133064,"url":"https://github.com/griego-stack/cerberus-auth-template","last_synced_at":"2025-06-30T07:02:24.741Z","repository":{"id":299937083,"uuid":"1004645929","full_name":"griego-stack/cerberus-auth-template","owner":"griego-stack","description":"Cerberus is a NestJS authentication template built with Hexagonal Architecture, TypeORM, role-based access control, and multi-factor authentication — designed to guard your app’s core like a true gatekeeper.","archived":false,"fork":false,"pushed_at":"2025-06-22T16:41:38.000Z","size":289,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T17:24:39.300Z","etag":null,"topics":["api-starter","auth-template","authentication","backend","clean-architecture","ddd","hexagonal-architecture","jwt-auth","mfa","modular","nestjs","nodejs","rest-api","security","template","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/griego-stack","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/griego-stack.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,"zenodo":null}},"created_at":"2025-06-19T00:51:11.000Z","updated_at":"2025-06-22T01:21:02.000Z","dependencies_parsed_at":"2025-06-22T17:34:49.707Z","dependency_job_id":null,"html_url":"https://github.com/griego-stack/cerberus-auth-template","commit_stats":null,"previous_names":["griego-stack/cerbeus-auth-template","griego-stack/cerberus-auth-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/griego-stack/cerberus-auth-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griego-stack%2Fcerberus-auth-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griego-stack%2Fcerberus-auth-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griego-stack%2Fcerberus-auth-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griego-stack%2Fcerberus-auth-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/griego-stack","download_url":"https://codeload.github.com/griego-stack/cerberus-auth-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griego-stack%2Fcerberus-auth-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262727708,"owners_count":23354665,"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":["api-starter","auth-template","authentication","backend","clean-architecture","ddd","hexagonal-architecture","jwt-auth","mfa","modular","nestjs","nodejs","rest-api","security","template","typescript"],"created_at":"2025-06-30T07:01:56.377Z","updated_at":"2025-06-30T07:02:24.718Z","avatar_url":"https://github.com/griego-stack.png","language":"TypeScript","readme":"# Cerberus Auth Template\n\n**Cerberus** is a robust NestJS authentication template built using **Hexagonal Architecture**, **TypeORM**, **Role-Based Access Control**, and **Multi-Factor Authentication** — designed to protect your app’s core like a true gatekeeper.\n\n---\n\n## 📊 Resources\n\n- [Database diagram (Auth)](https://dbdesigner.page.link/uFMNCMAJ2JCUsJko7)\n\n## 🚀 Project Setup\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/griego-stack/cerberus-auth-template.git\ncd cerberus-auth-template\n```\n\nOr use it as a template:\n**`https://github.com/griego-stack/cerberus-auth-template`**\n\n---\n\n### 2. Install dependencies\n\n```bash\nnpm install\n```\n\n---\n\n### 3. Create the databases\n\nMake sure you have the following MySQL databases:\n\n- Main database: `cerbeus`\n- Logs database: `cerbeus-logs`\n\n---\n\n### 4. Configure environment variables\n\nCreate a `.env` file at the root and define your environment variables:\n\n```env\n# App Configuration\nPORT=8000\n\n# Secrets\nJWT_SECRET_KEY=your-secret-key\nCOOKIE_SECRET=your-secret\n\n# Client Configuration\nCLIENT_1_URL=http://localhost:3000\n\n# Email Configuration\nEMAIL_HOST=smtp.gmail.com\nEMAIL_PORT=465\nEMAIL_SECURE=true\nEMAIL_HOST_USER=your-host-user\nEMAIL_HOST_PASSWORD=your-host-password\n\n# Social\nGOOGLE_CLIENT_ID=your-google-client-id\nGOOGLE_CLIENT_SECRET=your-google-client-secret\nGITHUB_CLIENT_ID=your-github-client-id\nGITHUB_CLIENT_SECRET=your-github-client-secret\n\n# Database Configuration\nMAIN_DATABASE_NAME=cerbeus\nMAIN_DATABASE_USER=your-user\nMAIN_DATABASE_PASSWORD=your-password\n```\n\n---\n\n### 5. Customize the application\n\nGo to\n`src/global/services/app-config.service.ts`\nand feel free to customize it to fit your project.\n\n---\n\n### 6. Seed the database with initial values\n\nEdit the seed files located in the `seed/` directory as needed, then run:\n\n```bash\nnpm run seed\n```\n\nThis will populate the `provider` and `role` tables with the initial values required by the system.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriego-stack%2Fcerberus-auth-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgriego-stack%2Fcerberus-auth-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriego-stack%2Fcerberus-auth-template/lists"}