{"id":19536910,"url":"https://github.com/alexgalhardo/api.games.alexgalhardo.com","last_synced_at":"2026-07-02T10:32:32.964Z","repository":{"id":193939612,"uuid":"687289982","full_name":"AlexGalhardo/api.games.alexgalhardo.com","owner":"AlexGalhardo","description":"A side project I created to learn and improve my skills about how to develop a backend for a micro-saas.","archived":false,"fork":false,"pushed_at":"2025-01-15T17:26:28.000Z","size":1129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-15T15:11:36.027Z","etag":null,"topics":["api","clean-architecture","nestjs","resend","rest-api","stripe","typescript"],"latest_commit_sha":null,"homepage":"https://api.games.alexgalhardo.com","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/AlexGalhardo.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-05T03:52:17.000Z","updated_at":"2025-01-15T17:26:30.000Z","dependencies_parsed_at":"2024-01-03T20:24:32.628Z","dependency_job_id":"ad9e639f-4100-4629-b80a-8fda286e4f60","html_url":"https://github.com/AlexGalhardo/api.games.alexgalhardo.com","commit_stats":null,"previous_names":["alexgalhardo/api.nerdapi.com","alexgalhardo/api.games.alexgalhardo.com"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexGalhardo/api.games.alexgalhardo.com","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexGalhardo%2Fapi.games.alexgalhardo.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexGalhardo%2Fapi.games.alexgalhardo.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexGalhardo%2Fapi.games.alexgalhardo.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexGalhardo%2Fapi.games.alexgalhardo.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexGalhardo","download_url":"https://codeload.github.com/AlexGalhardo/api.games.alexgalhardo.com/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexGalhardo%2Fapi.games.alexgalhardo.com/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35043933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"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":["api","clean-architecture","nestjs","resend","rest-api","stripe","typescript"],"created_at":"2024-11-11T02:24:49.498Z","updated_at":"2026-07-02T10:32:32.943Z","avatar_url":"https://github.com/AlexGalhardo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ca href=\"https://api.games.alexgalhardo.com\" target=\"_blank\"\u003eapi.games.alexgalhardo.com\u003c/a\u003e\u003c/h1\u003e\n\n## Introduction\n\n- A side project I created to learn and improve my skills about how to develop a backend for a micro-saas.\n\n## Technologies\n- [NodeJS](https://nodejs.org/en)\n- [NestJS](https://nestjs.com/)\n- [PrismaORM](https://www.prisma.io/)\n- [Docker](https://docs.docker.com/)\n- [PostgreSQL](https://www.postgresql.org/)\n\n## FrontEnd \u0026 Docs\n- FrontEnd Source Code: \u003chttps://github.com/AlexGalhardo/games.alexgalhardo.com\u003e\n- Documentation Source code: \u003chttps://github.com/AlexGalhardo/docs.games.alexgalhardo.com\u003e\n- Docs Live: \u003chttps://docs.games.alexgalhardo.com\u003e\n- Legacy v1: \u003chttps://github.com/AlexGalhardo/legacy.api.nerdapi.com\u003e\n\n## Features\n- [x] CRUD API REST\n- [x] Authentication (Email \u0026 Password, Google \u0026 Github)\n- [x] Send Emails\n- [x] Subscriptions Payments with Webhooks\n- [x] Unit Tests using Jest Mocks\n- [x] Git Hooks using Husky (pre-commit and pre-push)\n- [x] Following clean architecture principles (use-case, repositories, dependency injection, IoC, etc)\n- [x] CI/CD using Github Actions (linter, tests, build)\n- [x] Middlewares to verify authentication \u0026 authorization\n- [x] Migrations \u0026 Seeds \u0026 Database GUI\n- [x] OpenAPI Specification Swagger v3 Documentation\n- [x] Multi tenant (single database, shared schema)\n- [x] Logs \u0026 Monitoring\n- [x] Zod validation for payload requests\n- [x] Security configs (rate-limiter, cors, exception errors handlers, etc)\n- [ ] Git tags for releases\n- [ ] Integration tests\n- [x] Healthcheck endpoint (databases conections, memory usage, etc)\n\n## Development Setup Local\n\n1. Clone repository\n```bash\ngit clone git@github.com:AlexGalhardo/api.games.alexgalhardo.com.git\n```\n\n2. Enter repository\n```bash\ncd api.games.alexgalhardo.com/\n```\n\n3. Install dependencies\n```bash\nnpm install\n```\n\n4. Setup your environment variables\n```bash\ncp .env.example .env\n```\n   - Generating JWE Public and Private Keys:\n      - Install Bun: \u003chttps://bun.sh/\u003e\n\t  - Run command: `npm run generate:jwe:keys`\n\n5. Create Migrations and Seeds\n```bash\nchmod +x setup.sh \u0026\u0026 ./setup.sh\n```\n\n6. To Start Prisma Studio:\n```bash\nnpm run prisma:studio\n```\n\n7. Start local server\n```bash\nnpm run dev\n```\n\n## Build\na. Creating build\n```bash\nnpm run build\n```\n\nb. Testing build server locally\n```bash\nnpm run start\n```\n\n## Tests\n\na. Run all unit tests\n```bash\nnpm run test\n```\n\n## Error Logs\n- If you wanna use Errosole, enable `ENABLE_ERRSOLE=true` on your `.env` file\n- Then, you can see [Errsole Web Dashboard](https://github.com/errsole) on \u003chttp://localhost:3000/errsole\u003e\n\n## API Requests\n\n- You can see the HTTP Requests references inside folder [rest-client/](rest-client/)\n- You can also see  API documentation in:\n   - Localhost: \u003chttp://localhost:3000/docs\u003e\n   - Live: \u003chttps://api.games.alexgalhardo.com/docs\u003e\n\n## Documentation\n- Read and add usefull documentation (markdown, notes, images, best practices, etc) about this project inside folder [docs/](docs/)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) August 2023-present, [Alex Galhardo](https://github.com/AlexGalhardo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexgalhardo%2Fapi.games.alexgalhardo.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexgalhardo%2Fapi.games.alexgalhardo.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexgalhardo%2Fapi.games.alexgalhardo.com/lists"}