{"id":44702266,"url":"https://github.com/flrnd/nestjs-graphql-example","last_synced_at":"2026-02-15T10:29:05.135Z","repository":{"id":208256455,"uuid":"721190034","full_name":"flrnd/nestjs-graphql-example","owner":"flrnd","description":"NestJS GraphQL API example with unit and e2e tests.","archived":false,"fork":false,"pushed_at":"2023-11-20T14:51:16.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-20T15:48:56.713Z","etag":null,"topics":["api","graphql","integration-testing","nestjs","nestjs-backend","nestjs-graphql","unit-testing"],"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/flrnd.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}},"created_at":"2023-11-20T14:39:26.000Z","updated_at":"2023-11-20T15:48:59.956Z","dependencies_parsed_at":"2023-11-20T15:59:04.935Z","dependency_job_id":null,"html_url":"https://github.com/flrnd/nestjs-graphql-example","commit_stats":null,"previous_names":["flrnd/nestjs-graphql-example"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/flrnd/nestjs-graphql-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flrnd%2Fnestjs-graphql-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flrnd%2Fnestjs-graphql-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flrnd%2Fnestjs-graphql-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flrnd%2Fnestjs-graphql-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flrnd","download_url":"https://codeload.github.com/flrnd/nestjs-graphql-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flrnd%2Fnestjs-graphql-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29475550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T10:25:47.032Z","status":"ssl_error","status_checked_at":"2026-02-15T10:25:01.815Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","graphql","integration-testing","nestjs","nestjs-backend","nestjs-graphql","unit-testing"],"created_at":"2026-02-15T10:29:04.675Z","updated_at":"2026-02-15T10:29:05.128Z","avatar_url":"https://github.com/flrnd.png","language":"TypeScript","readme":"# Coffee shop\n\nNestJS GraphQL API example with unit and e2e tests.\n\nI use `pnpm` as my node manager, you can use whatever you like, simply remove the pnpm-lock.yaml file and use `npm|yarn` instead.\n\n## Scripts\n\nThe following scripts are here to help you get up and running in a development environment as quickly as possible.\n\n### Installation\n\n```bash\n$ pnpm install\n```\n\n### Running the database with docker\n\nExample .env file\n\n```bash\nPOSTGRES_USER=postgres\nPOSTGRES_PASSWORD=super-secret-secure-password\nPOSTGRES_DB=coffedb\n\n# Prisma\nDATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?schema=public\n\n# CORS\nALLOWED_ORIGINS=http://localhost:3000/\n```\n\nThen run\n\n```bash\n# start the docker db\n$ pnpm start:dev:db\n```\n\n### Seeding the database\n\n```bash\n# migrate the schema\n$ pnpx prisma migrate deploy\n\n# seed the database\n$ pnpx prisma db seed\n```\n\n### Gerating GraphQL Types\n\n```bash\n$ ts-node generate-typings.ts\n```\n\n### Running the project in development mode\n\n```bash\n# Will run on port 5000\n$ pnpm start:dev\n```\n\n### GrapqhQL Playground (Apollo Studio)\n\nOpen `http://localhost:5000/graphql`\n\n### Test\n\n```bash\n# unit tests\n$ pnpm test\n\n# e2e tests\n$ pnpm test:e2e\n\n# test coverage\n$ pnpm test:cov\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflrnd%2Fnestjs-graphql-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflrnd%2Fnestjs-graphql-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflrnd%2Fnestjs-graphql-example/lists"}