{"id":20114350,"url":"https://github.com/jetbridge/sst-prisma","last_synced_at":"2025-06-27T13:37:50.665Z","repository":{"id":38440169,"uuid":"482546333","full_name":"jetbridge/sst-prisma","owner":"jetbridge","description":"Serverless Stack + Prisma ORM Template","archived":false,"fork":false,"pushed_at":"2024-07-03T07:20:38.000Z","size":190854,"stargazers_count":208,"open_issues_count":7,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-20T09:01:50.890Z","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/jetbridge.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}},"created_at":"2022-04-17T14:32:10.000Z","updated_at":"2025-04-24T12:04:26.000Z","dependencies_parsed_at":"2024-11-23T01:07:38.621Z","dependency_job_id":"2add6e9a-3561-46dd-b960-e426ee754e4d","html_url":"https://github.com/jetbridge/sst-prisma","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/jetbridge/sst-prisma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fsst-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fsst-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fsst-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fsst-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jetbridge","download_url":"https://codeload.github.com/jetbridge/sst-prisma/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fsst-prisma/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262266594,"owners_count":23284714,"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-11-13T18:29:27.389Z","updated_at":"2025-06-27T13:37:50.634Z","avatar_url":"https://github.com/jetbridge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Stack + Prisma - Starter Kit\n\n## What is this?\n\nIf you want to build a serverless app with AWS CDK, Lambda, and Postgres, this is the template for you.\n\nYou can click \"Use this template\" button in GitHub to fork this repo. You can [merge](https://stackoverflow.com/a/69563752) in improvements in this repo to your project over time.\n\nClone your copy of this template, then do a search and replace for \"myapp\" to give it a name.\n\n## Quickstart\n\n### Prerequisites\n\nAssumes you have [Node 20](https://nodejs.org/en/download/current/) installed and AWS credentials [configured](https://docs.sst.dev/advanced/iam-credentials).\n\n### Setup\n\nEdit `sst.config.ts` and set your default AWS profile and region.\n\n```shell\nnpm i -g pnpm  # install pnpm globally\npnpm i  # install dependencies + generate types from DB and GQL schemas\npnpm commit-hooks # install commit hooks for linting and formatting (optional)\npnpm db:migrate  # run DB migrations\npnpm dev  # start AWS local dev environment\npnpm dev:web  # start NextJS frontend dev server\n```\n\n### Config\n\nSet your default AWS profile and region in `sst.config.ts`.\n\nEdit .env or .env.$stage to set infrastructure vars.\n\n## Features\n\nAll features are optional, delete what you don't need.\n\nClick links to learn more and view documentation.\n\n- 🌩 [Serverless Stack](https://serverless-stack.com/) - powerful CDK developer experience tools\n- 🌤 [AWS CDK](https://aws.amazon.com/cdk/) - cloud-native infrastructure as code\n- ፨ [GraphQL API](https://docs.serverless-stack.com/constructs/GraphQLApi) (optional)\n  - ⇅ [AWS AppSync](https://docs.aws.amazon.com/appsync/latest/devguide/what-is-appsync.html) - serverless GraphQL AWS service\n  - ✽ [Code generation](https://www.graphql-code-generator.com/) of [TypeScript](https://www.graphql-code-generator.com/docs/guides/front-end-typescript-only) + [react client](https://the-guild.dev/graphql/codegen/docs/guides/react-vue)\n- 🌐 [REST API gateway](https://docs.serverless-stack.com/api)\n- 🖥 [NextJS](https://nextjs.org/) nextjs app router\n  - 🎨 [Tailwind](https://tailwindcss.com/) - for styling\n  - 🔓 [NextAuth.js](https://next-auth.js.org/) - authentication and session management\n- 🔓 [AWS Cognito](https://aws.amazon.com/cognito/) - authentication backend\n- 💾 [Prisma ORM](https://www.prisma.io/docs/)\n  - 📚 Prisma engine lambda layer\n  - 📜 Prisma DB migration CDK script\n  - 🐳 Database integration test setup with postgres in docker\n- 🔋 [Aurora Serverless v2 RDS](https://aws.amazon.com/rds/aurora/serverless/) PostgreSQL\n- ⚡️ [Live local lambda development](https://docs.serverless-stack.com/live-lambda-development) (`pnpm dev`)\n  - 🐞 [Lambda debugging](https://docs.sst.dev/live-lambda-development#debugging-with-visual-studio-code) - set breakpoints on your lambda functions and step through in your IDE\n- 📦 [pnpm](https://pnpm.io/) - fast and correct package manager\n- 🚅 [vitest](https://vitest.dev/) - fast tests\n- 🐛 [ES Modules](https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/)\n- 🔧 [ESBuild](https://esbuild.github.io/) - fast code bundling on backend (under the hood) with tree-shaking\n- 🫙 [Middy](https://middy.js.org/) - middleware for Lambda functions\n- 🛠 [AWS Lambda Powertools](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/) - for [custom metrics](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/metrics/), [structured logging](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/logger/), and [tracing](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/tracer/).\n\n## Package scripts\n\nPlease see [package.json](package.json) `scripts` for more.\n\n### Start live backend dev server with AWS\n\n```shell\npnpm dev\n```\n\n### Start Nextjs frontend dev server\n\n```shell\npnpm dev:web\n```\n\n### Run/generate DB migrations locally\n\n```shell\npnpm db:migrate\n```\n\n### Just watch and perform type-checking\n\n```shell\npnpm watch\n```\n\n### Deploy to your AWS environment\n\n```shell\npnpm deploy\n```\n\n### Deploy to specific AWS environment (region/profile)\n\n```shell\npnpm deploy --region eu-west-1 --profile dev\n```\n\n### All SST/CDK commands\n\n```shell\npnpm exec sst\npnpm exec cdk\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbridge%2Fsst-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetbridge%2Fsst-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbridge%2Fsst-prisma/lists"}