{"id":27671751,"url":"https://github.com/Innei/nest-http-prisma-zod","last_synced_at":"2025-04-25T00:01:58.480Z","repository":{"id":192863023,"uuid":"683940402","full_name":"innei-template/nest-http-prisma-zod","owner":"innei-template","description":"A best practice for NestJS framework with using Prisma + Postgres, Socket.IO, Zod and Vitest","archived":false,"fork":false,"pushed_at":"2025-04-22T08:15:12.000Z","size":1332,"stargazers_count":147,"open_issues_count":12,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-22T09:28:10.667Z","etag":null,"topics":["nestjs"],"latest_commit_sha":null,"homepage":"","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/innei-template.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":"2023-08-28T05:34:31.000Z","updated_at":"2025-04-02T13:11:37.000Z","dependencies_parsed_at":"2025-04-22T09:36:38.059Z","dependency_job_id":null,"html_url":"https://github.com/innei-template/nest-http-prisma-zod","commit_stats":null,"previous_names":["innei/nest-http-prisma-zod","innei-template/nest-http-prisma-zod"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-prisma-zod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-prisma-zod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-prisma-zod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-prisma-zod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innei-template","download_url":"https://codeload.github.com/innei-template/nest-http-prisma-zod/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250730364,"owners_count":21477754,"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":["nestjs"],"created_at":"2025-04-25T00:01:15.826Z","updated_at":"2025-04-25T00:01:58.394Z","avatar_url":"https://github.com/innei-template.png","language":"TypeScript","funding_links":[],"categories":["Resources"],"sub_categories":[],"readme":"# Nest Http Template\n\nA best practice for using Prisma + Postgres, Socket.IO (Guest or authentication required) and Zod data validation. And it covers unit testing and integration testing.\n\n![](https://github.com/Innei/nest-http-prisma-zod/assets/41265413/beb9fac0-19c8-448f-ac28-9299765ed899)\n\n## Which Tech Stack In Use\n\n- Framework: NestJS (Based on Fastify)\n- Language: TypeScript (Best practices, Not AnyScript)\n- Database ODM: Prisma (Fully type-safe schema and query)\n- Data Validation: Zod\n- Testing: Vitest\n- Package Manager: pnpm\n- DevOps: Docker\n- Other: Monorepo, Prettier, ESLint, Husky, Bump Version, etc.\n\n\n## Run in docker compose\n\n1. Copy and adjust `.env.template` to `.env`\n\n```sh\ncp .env.template .env\nvim .env\n```\n\n2. \n\n```sh\ndocker build . -t innei/nest-http-prisma-zod\ndocker compose up\n```\n\n## How to start development\n\n```bash\npnpm run init # first time\nnpm run dev\n```\n\n**Before you start dev, do not forget copy `.env.template` to `.env`**\n\n## Using this template for your own project\n\nJust tap the `Fork` button.\n\n### Write an service unit test\n\n### Write an route integration test\n\n## TODO\n\n- [x] Custom Logger without consola\n- [x] Prisma pagination implementation\n- [x] Fully testing unit and e2e\n- [ ] Data caching and API caching without cache-manager\n\n## License\n\n2023 © Innei, Released under the MIT License.\n\n\u003e [Personal Website](https://innei.in/) · GitHub [@Innei](https://github.com/innei/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInnei%2Fnest-http-prisma-zod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInnei%2Fnest-http-prisma-zod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInnei%2Fnest-http-prisma-zod/lists"}