{"id":16925096,"url":"https://github.com/hiroppy/nextjs-zero-cache","last_synced_at":"2026-04-12T04:38:57.738Z","repository":{"id":236049374,"uuid":"791800869","full_name":"hiroppy/nextjs-zero-cache","owner":"hiroppy","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-25T11:57:38.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T21:56:05.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hiroppy.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}},"created_at":"2024-04-25T11:55:01.000Z","updated_at":"2024-04-25T22:22:22.000Z","dependencies_parsed_at":"2024-04-25T13:02:13.625Z","dependency_job_id":null,"html_url":"https://github.com/hiroppy/nextjs-zero-cache","commit_stats":null,"previous_names":["hiroppy/nextjs-zero-cache"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnextjs-zero-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnextjs-zero-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnextjs-zero-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnextjs-zero-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiroppy","download_url":"https://codeload.github.com/hiroppy/nextjs-zero-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244719565,"owners_count":20498666,"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":[],"created_at":"2024-10-13T20:08:48.395Z","updated_at":"2025-12-31T00:03:44.704Z","avatar_url":"https://github.com/hiroppy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Setup\n\n**1. Installing Docker Compose**\n\nPlease check [Installation scenarios](https://docs.docker.com/compose/install/) section.\n\n**2. Enabling git hook and corepack**\n\n```sh\nnpm run setup\n```\n\n**3. Installing Deps**\n\n```sh\npnpm i\n```\n\n**4. Creating `.env.local` and modifying environment variables**\n\n```sh\ncp .env.sample .env.local\n```\n\nSet the following environment variables in `.env.local`.\n\n```\nGOOGLE_CLIENT_ID=\nGOOGLE_CLIENT_SECRET=\n```\n\n_If you don't use Google OAuth, you can remove a provider from `_clients/NextAuth.ts`._\n\n## Dev\n\n```sh\n# start docker-compose, migrations(generating the client), and next dev\npnpm dev\n# create new migration\npnpm dev:db:migrate\n# reset the DB\npnpm dev:db:reset\n# view the contents\npnpm dev:db:studio\n```\n\n📙 [Database ER diagram](/prisma/ERD.md)\n\n## Test\n\nTest uses also DB so need to start DB first.\n\n```sh\n# unit test\n\n# run the DB and generate the client\npnpm test:db:setup\n# execute\npnpm test\n# watch the unit test\npnpm test:watch\n# reset the DB\npnpm test:db:reset\n\n# e2e\n\n# install chrome\npnpm exec playwright install chrome\n# run the DB and generate the client\npnpm test:db:setup\n# test uses a built app since next.js has different cache behavior between development and production\npnpm build\n# execute\npnpm test:e2e\n```\n\n💁‍♀️ This template recommends using a real database but when you face not keeping idempotency, you might consider using mock.\n\n## Prod\n\n```sh\npnpm db:start\npnpm build\npnpm start\n```\n\nIf you set `POSTGRESQL_URL` as GitHub secrets, you will be able to execute migration for database on GitHub actions(`.github/workflows/migration.yml`).\n\n## Observability\n\nThis project has [OpenTelemetry](https://opentelemetry.io/) and it works only production environment.\n\n### Local\n\n```sh\npnpm db:start\npnpm build\npnpm start\n# open Jaeger\nopen http://localhost:16686/\n```\n\n### Server\n\nPlease add a url to `process.env.TRACE_EXPORTER_URL`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fnextjs-zero-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiroppy%2Fnextjs-zero-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fnextjs-zero-cache/lists"}