{"id":27146257,"url":"https://github.com/ryands17/serverless-prisma","last_synced_at":"2025-04-08T10:10:11.980Z","repository":{"id":45855682,"uuid":"262361791","full_name":"ryands17/serverless-prisma","owner":"ryands17","description":"Deploying a Prisma 2 app with apollo-server on AWS Lambda using the Serverless framework","archived":false,"fork":false,"pushed_at":"2021-12-01T17:24:26.000Z","size":3258,"stargazers_count":19,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-18T07:45:49.747Z","etag":null,"topics":["aws-lambda","nexus-schema","prisma2","serverless-framework","typescript"],"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/ryands17.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}},"created_at":"2020-05-08T15:37:25.000Z","updated_at":"2024-05-18T07:45:49.748Z","dependencies_parsed_at":"2022-09-05T06:51:20.438Z","dependency_job_id":null,"html_url":"https://github.com/ryands17/serverless-prisma","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/ryands17%2Fserverless-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fserverless-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fserverless-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fserverless-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryands17","download_url":"https://codeload.github.com/ryands17/serverless-prisma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819947,"owners_count":21001394,"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":["aws-lambda","nexus-schema","prisma2","serverless-framework","typescript"],"created_at":"2025-04-08T10:10:11.403Z","updated_at":"2025-04-08T10:10:11.974Z","avatar_url":"https://github.com/ryands17.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Prisma\n\n### A GraphQL API created using the [Serverless](https://serverless.com) framework using the following tools\n\n- [Prisma 2](http://prisma.io/)\n- [@nexus/schema](https://www.nexusjs.org/#/components/schema/about)\n- [Apollo Server Lambda](https://www.apollographql.com/docs/apollo-server/deployment/lambda/)\n\n### Prerequisites\n\n- node \u003e= 12\n- yarn (recommended) or npm\n\n### Commands\n\n- `yarn db:save`: Run this command at the start of the project to generate the migrations for your Prisma model located in `prisma/schema.prisma`\n\n- `yarn db:migrate`: Run this command to add your migrations to the database.\n\n- `yarn dev`: Runs the server in development mode via the `sls offline` command and simulates the entire API on [http://localhost:3000/dev/graphql](http://localhost:3000/dev/graphql) by default.\n\n  - Copy/Rename the `.env.example` to `.env` and replace the `DATABASE_URL` with the database URL.\n\n- `yarn deploy`: Deploy your application via `sls deploy` on AWS Lambda.\n  - Copy/Rename the `.env.example` to `.env.production` and replace the `DATABASE_URL` with the database URL and set `NODE_ENV` to **production** (this is required for Nexus to not generate artifacts).\n\n**_Note_**: AWS Access and Secret keys must be configured via `aws configure` using the [aws-cli](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html). The setup uses the `prisma_demo` profile but you can pass a custom one using `yarn deploy --profile profileName`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryands17%2Fserverless-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryands17%2Fserverless-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryands17%2Fserverless-prisma/lists"}