{"id":13485115,"url":"https://github.com/Gomah/prisma-serverless","last_synced_at":"2025-03-27T17:30:49.395Z","repository":{"id":38809049,"uuid":"171443006","full_name":"Gomah/prisma-serverless","owner":"Gomah","description":"Prisma (Nexus) + Typescript + AWS Serverless Lambda = :fireworks:","archived":false,"fork":false,"pushed_at":"2023-01-09T22:41:08.000Z","size":8609,"stargazers_count":117,"open_issues_count":32,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T06:44:51.117Z","etag":null,"topics":["boilerplate","graphql","lambda","nexus","nexus-prisma","prisma","serverless"],"latest_commit_sha":null,"homepage":"https://q94zymp1ig.execute-api.ap-southeast-2.amazonaws.com/production","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/Gomah.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":"2019-02-19T09:16:40.000Z","updated_at":"2024-08-31T01:51:57.000Z","dependencies_parsed_at":"2023-02-08T15:15:23.973Z","dependency_job_id":null,"html_url":"https://github.com/Gomah/prisma-serverless","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/Gomah%2Fprisma-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gomah%2Fprisma-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gomah%2Fprisma-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gomah%2Fprisma-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gomah","download_url":"https://codeload.github.com/Gomah/prisma-serverless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245892461,"owners_count":20689506,"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":["boilerplate","graphql","lambda","nexus","nexus-prisma","prisma","serverless"],"created_at":"2024-07-31T17:01:46.499Z","updated_at":"2025-03-27T17:30:48.512Z","avatar_url":"https://github.com/Gomah.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Prisma Serverless\n\n\u003e Template for Prisma (Nexus) + Typescript + AWS Serverless Lambda = :fireworks:\n\nThis boilerplate includes:\n\n- :rocket: [Apollo Server Lambda](https://www.apollographql.com/docs/apollo-server/deployment/lambda)\n- :zap: [Serverless](https://serverless.com/) with Webpack, Auto prune \u0026 Typescript support\n- :alembic: [Prisma](https//prisma.io) \u0026 CRUD schema generated using [Nexus](https://nexus.js.org/)\n- :construction_worker: [CircleCI](https://circleci.com/) configuration to deploy to lambda\n- :lock: Basic permissions with [graphql-shield](https://github.com/maticzav/graphql-shield)\n\nThere's more to come :eyes:\n\n## Table of contents\n\n- [Project Structure](#project-structure)\n- [Quickstart](#quickstart)\n- [Deploying](#deploying)\n\n### Project Structure\n\n```bash\n.\n├── config/                     # Serverless env\n├── prisma/                     # Prisma related config \u0026 Datamodel\n├── src/                        # The magic happens here\n│   ├── generated/              # Generated prisma schema \u0026 client\n│   ├── permissions/            # Resolvers permissions\n│   └── resolvers/              # App resolvers\n│       ├── Mutation/           # Resolvers mutations\n│       └── Query/              # Resolvers queries\n├── typings/                    # Typescript generic typings\n├── .babelrc                    # babel config\n├── .editorconfig               # editor config\n├── .eslintrc.js                # eslint config\n├── .gitignore                  # git ignore list\n├── .nvmrc                      # nvm config\n├── .prettierrc                 # Prettier configuration\n├── docker-compose.yml          # Docker compose file (for local server)\n├── package.json                # build scripts and dependencies\n├── README.md                   # This file ;)\n├── serverless.yml              # Serverless configuration\n├── tsconfig.json               # Typescript configuration\n└── yarn.lock                   # yarn lock file\n```\n\n### Quickstart\n\n#### Prerequisites\n\nYou'll need a prisma server setup to use this template.\nYou can either create a local prisma server using `Docker`:\n\n```bash\ndocker-compose up -d\n```\n\nOr deploy to a new prisma demo server:\n\n```bash\nyarn prisma deploy\n```\n\nThen, create an `.env` referencing the prisma endpoint:\n\n```bash\nPRISMA_ENDPOINT=\"http://localhost:4469/app/dev\"\nPRISMA_SECRET=\"PRISMA_SECRET\"\nAPP_SECRET=\"MY_APP_SECRET\"\n```\n\n- [Yarn](https://yarnpkg.com/lang/en/docs/install/#mac-tab)\n- [Node.js](https://nodejs.org/en/)\n\n```bash\n# install dependencies\nyarn install\n\n# Run local lambda http environment (API Gateway simulator)\nyarn dev\n\n# Run tests\nyarn run test\n\n```\n\n---\n\n### Deploying\n\n1. Deploy \u0026 Generate the prisma schema based on the datamodel to the prisma server.\n\n```bash\n# Deploy the schema to the prisma server \u0026 generate prisma client \u0026 schema\nyarn prisma deploy\n\n# Resolvers deployment\n\n# Deploy (development)\nyarn deploy:dev\n\n# Deploy (production)\nyarn deploy:prod\n```\n\n---\n\n### Help\n\n- [Serverless Documentation](https://serverless.com/framework/docs/)\n- [Lambda](https://console.aws.amazon.com/lambda/home?region=us-east-1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGomah%2Fprisma-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGomah%2Fprisma-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGomah%2Fprisma-serverless/lists"}