{"id":20384257,"url":"https://github.com/prisma-cms/ecommerce","last_synced_at":"2026-04-19T02:32:35.918Z","repository":{"id":96349894,"uuid":"352669606","full_name":"prisma-cms/ecommerce","owner":"prisma-cms","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-08T15:52:36.000Z","size":1266,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T23:12:50.465Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prisma-cms.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-29T14:18:45.000Z","updated_at":"2021-05-08T15:52:38.000Z","dependencies_parsed_at":"2023-03-21T21:17:49.115Z","dependency_job_id":null,"html_url":"https://github.com/prisma-cms/ecommerce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prisma-cms/ecommerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-cms%2Fecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-cms%2Fecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-cms%2Fecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-cms%2Fecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma-cms","download_url":"https://codeload.github.com/prisma-cms/ecommerce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-cms%2Fecommerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":[],"created_at":"2024-11-15T02:26:57.476Z","updated_at":"2026-04-19T02:32:35.881Z","avatar_url":"https://github.com/prisma-cms.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @prisma-cms/nextjs Typescript Boilerplate\n\n### Based on\n\n- https://github.com/vercel/next.js/tree/canary/examples/with-typescript-eslint-jest\n- https://github.com/vercel/next.js/tree/canary/examples/with-apollo\n- https://github.com/vercel/next.js/tree/canary/examples/custom-server-typescript\n\nBootstrap a developer-friendly NextJS app configured with:\n\n- TypeScript CRUD API with [prisma-2](https://www.prisma.io/) and [nexus-js](https://nexusjs.org/)\n- Frontend GraphQL API schema and types generation.\n- [styled-components](https://styled-components.com/) AND [SASS/SCSS](https://sass-lang.com/).\n- [Typescript](https://www.typescriptlang.org/) and [server](https://github.com/TypeStrong/ts-node)\n- Linting with [ESLint](https://eslint.org/)\n- [Storybook](https://storybook.js.org/)\n- Formatting with [Prettier](https://prettier.io/)\n- Linting, typechecking and formatting on by default using [`husky`](https://github.com/typicode/husky) for commit hooks\n- Testing with [Jest](https://jestjs.io/) and [`react-testing-library`](https://testing-library.com/docs/react-testing-library/intro)\n\n## Deploy your own\n\nDeploy the example using [Vercel](https://vercel.com):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/prisma-cms/nextjs)\n\n## How to use\n\n```bash\n# Clone project\ngit clone https://github.com/prisma-cms/nextjs-nexus.git\n\n# Install dependencies\nyarn install\n\n# Clone and edit .env file\ncp .env.sample .env\n\n# Deploy database migrations (set MySQL connection credentioals in .env file)\nyarn prisma:deploy\n\n# Build bundles\nyarn build\n\n# Start bundled project\nyarn start\n```\n\n## Development\n\n1. Edit prisma shema in prisma/schema.prisma\n\n2. Push change to database\n\n```bash\nyarn prisma:db:push\n```\n\n3. Create migration\n\n```bash\nyarn prisma:migrate:create --name migration_name\n```\n\n5. Generate front GraphQL schema and types\n\n```bash\nyarn generate:types\n```\n\n6. Start server in development mode\n\n```bash\nyarn dev\n```\n\n## Tests\n\n### Eslint\n\n```bash\nyarn lint\n```\n\n### Typescript types checking\n\n```bash\nyarn types\n```\n\n### Jest unit tests\n\n```bash\nyarn test\n```\n\n### Test code coverage\n\n```bash\nyarn test --coverage\n```\n\n### Jest unit tests real API\n\n**Attension!** For unit tests with real API started server required.\n\n## Build\n\n1. Generate schemas if changed\n\n```bash\nyarn generate\n```\n\n2. Build bundles\n\n```bash\n# Build bundles\nyarn build\n\n# Start bundled project\nyarn start\n```\n\nAfter this open yet another terminal and run tests\n\n```bash\nyarn test:api\n```\n\n### Run all test\n\n```bash\nyarn test:all\n```\n\n### Analyze bundles\n\n```bash\nyarn build:analyze\n```\n\n### Storybook\n\n#### dev\n\n```bash\nyarn storybook\n```\n\n#### build storybook\n\n```bash\nyarn build:storybook\n```\n\nDeploy it to the cloud with [Vercel](https://vercel.com/import?filter=next.js\u0026utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma-cms%2Fecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma-cms%2Fecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma-cms%2Fecommerce/lists"}