{"id":21116643,"url":"https://github.com/sethmcleod/next-app","last_synced_at":"2025-04-13T06:14:35.463Z","repository":{"id":38328280,"uuid":"236763324","full_name":"sethmcleod/next-app","owner":"sethmcleod","description":"⚡️ Type-safe Next.js and GraphQL boilerplate","archived":false,"fork":false,"pushed_at":"2023-02-03T20:33:38.000Z","size":3181,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T06:14:35.344Z","etag":null,"topics":["chakra-ui","graphql","nextjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/sethmcleod.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}},"created_at":"2020-01-28T15:06:20.000Z","updated_at":"2023-03-10T10:40:45.000Z","dependencies_parsed_at":"2023-02-06T15:45:55.781Z","dependency_job_id":null,"html_url":"https://github.com/sethmcleod/next-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmcleod%2Fnext-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmcleod%2Fnext-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmcleod%2Fnext-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmcleod%2Fnext-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sethmcleod","download_url":"https://codeload.github.com/sethmcleod/next-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670435,"owners_count":21142904,"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":["chakra-ui","graphql","nextjs","typescript"],"created_at":"2024-11-20T02:32:08.851Z","updated_at":"2025-04-13T06:14:35.440Z","avatar_url":"https://github.com/sethmcleod.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡️ Next App\n\nNext App is a full-stack, type-safe boilerplate for building SaaS apps. It includes everything you need to hit the ground running on a new project.\n\nHere are some of the technologies used:\n\n- [Next.js](https://nextjs.org/) as the React framework\n- [TypeScript](https://www.typescriptlang.org/) as the programming language\n- [Chakra UI](https://chakra-ui.com/) as the React component library\n- [urql](https://github.com/formidablelabs/urql) as the GraphQL client\n- [Nexus](https://nexusjs.org/) for constructing the GraphQL schema\n- [Prisma](https://www.prisma.io/) as the ORM for managing the database and migrations\n- [PostgreSQL](https://www.postgresql.org/) as the database\n- [Vercel](https://vercel.com/) for deployments and infrastructure\n- [Stripe](https://stripe.com) for handling subscriptions and payments\n- [Postmark](https://postmarkapp.com) as the email API\n\n## Getting started\n\n### Initial setup\n\nCopy `.env.example` to `.env` and fill out the `.env` file with your environment variables!\n\n```sh\ncp .env.example .env\n```\n\nNow you're ready to set everything up locally:\n\n1. **Install Docker** by following their [installation instructions for your OS](https://docs.docker.com/get-docker/). This is used for the local development database.\n\n2. **Switch to the correct Node version** with `nvm`:\n\n```sh\nnvm use\n```\n\n3. **Install the dependencies** with `yarn`:\n\n```sh\nyarn\n```\n\n4. **Start the local development database** as well as the Stripe CLI webhook listener with `docker compose`:\n\n```sh\ndocker compose up\n```\n\n5. **Copy the webhook signing secret** that the Stripe CLI logged and add it to your `.env` file.\n\n6. **Migrate your local development database** to the base schema:\n\n```sh\nyarn prisma:migrate\n```\n\n### Development workflow\n\nTo develop your app, you always need to have two commands running concurrently:\n\n1. **Start the development database** with:\n\n```sh\ndocker compose up\n```\n\n2. **Start the development process**, which also runs all the necessary code generators:\n\n```sh\nyarn dev\n```\n\nThat's it! Now you can visit http://localhost:3000 🎉\n\n#### Scripts\n\nThe **three most important commands** you'll run frequently during development:\n\n- `yarn generate`: Generates the Prisma client ([docs](https://www.prisma.io/docs/concepts/components/prisma-client)), which Nexus uses and generates the GraphQL schema ([docs](https://nexusjs.org/docs/guides/generated-artifacts)), which GraphQL Codegen uses and generates the urql hooks ([docs](https://graphql-code-generator.com/docs/plugins/typescript-urql)). Run this whenever you change the database schema, GraphQL schema or GraphQL queries.\n\n- `yarn prisma:migrate`: Creates migration files from your Prisma schema changes and runs those migrations on your local dev db ([docs](https://www.prisma.io/docs/concepts/components/prisma-migrate)). Run this whenever you change your database schema.\n\n- `yarn prisma:studio`: Starts [Prisma Studio](https://prisma.io/studio) on `localhost:5555` where you can inspect your local development database.\n\n- `yarn cypress:open`: Opens Cypress so you can write and run your end-to-end tests. ([docs](https://docs.cypress.io/guides/getting-started/installing-cypress.html#Adding-npm-scripts))\n\nAll the others are used in CI or by those three main scripts, but you should only rarely need to run them manually.\n\n---\n\nCrafted with ❤️ and 🍺\n\nInspired by [Bedrock](https://bedrock.mxstbr.com/) by [Max Stoiber](https://mxstbr.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethmcleod%2Fnext-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsethmcleod%2Fnext-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethmcleod%2Fnext-app/lists"}