{"id":18448618,"url":"https://github.com/tomyitav/apollo-typed-lambda","last_synced_at":"2025-04-08T01:32:28.698Z","repository":{"id":33714342,"uuid":"149876723","full_name":"tomyitav/apollo-typed-lambda","owner":"tomyitav","description":"Setting up apollo server on aws lambda","archived":false,"fork":false,"pushed_at":"2024-10-31T02:10:45.000Z","size":977,"stargazers_count":25,"open_issues_count":50,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T03:18:22.714Z","etag":null,"topics":["aws","aws-lambda","graphql","nodejs","serverless","typescript"],"latest_commit_sha":null,"homepage":"https://sbzzpx6y07.execute-api.us-east-1.amazonaws.com/dev/graphql","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/tomyitav.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":"2018-09-22T12:55:02.000Z","updated_at":"2023-07-27T12:04:21.000Z","dependencies_parsed_at":"2023-10-26T20:37:26.348Z","dependency_job_id":"50fd521d-c747-4e18-b2ae-ac01ac42f90b","html_url":"https://github.com/tomyitav/apollo-typed-lambda","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/tomyitav%2Fapollo-typed-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fapollo-typed-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fapollo-typed-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fapollo-typed-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomyitav","download_url":"https://codeload.github.com/tomyitav/apollo-typed-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223296970,"owners_count":17121977,"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","aws-lambda","graphql","nodejs","serverless","typescript"],"created_at":"2024-11-06T07:16:33.765Z","updated_at":"2024-11-06T07:16:34.454Z","avatar_url":"https://github.com/tomyitav.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apollo-typed-lambda\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![renovate-app badge][renovate-badge]][renovate-app]\n\n[renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg\n[renovate-app]: https://renovateapp.com/\n\nBoilerplate project for [create-graphql-app](https://github.com/tomyitav/create-graphql-app) cli.\n\nDeploy [graphql-server-typed](https://github.com/tomyitav/graphql-server-typed) on AWS lambda, using:\n\n+ typescript\n+ apollo-server 2\n+ serverless-offline\n+ [graphql-code-generator](https://github.com/dotansimha/graphql-code-generator)\n+ merge-graphql-schemas\n+ Dependency injection with `injection-js`\n\nThis project demonstrates how to easily deploy a server, based on the [graphql-server-typed](https://github.com/tomyitav/graphql-server-typed)\nstarter, as AWS lambda.\n\nExecute queries to the demo server [here](https://sbzzpx6y07.execute-api.us-east-1.amazonaws.com/dev/graphql)\n\n## Installation\n\nClone the repository and run `npm install`\n\n```\ngit clone https://github.com/tomyitav/apollo-typed-lambda.git\nnpm install\n```\n\n## Starting the server locally\n\nRun:\n```\nnpm run build\n```\n\nand\n\n```\nnpm start\n```\n\nOr, you can do it in one command as:\n\n```\nnpm run sls:offline\n```\n\nThe server will run on port 3000. You can change this by editing the config file.\n\n## Code Formatting\n\nWe use Prettier and Tslint to format and enforce standards on our code. \u003c/br\u003e\nBoth will run on the project automatically before each commit. \u003c/br\u003e\n\nPrettier rewrites code according to the .prettierrc.json configuration file. \u003c/br\u003e\nIf you want to activate prettier manually (on all .ts files inside src folder) without committing, run: \u003c/br\u003e\n\n```\nnpm run prettier\n```\n\nTslint will check rules found in the tslint.json configuration file. \u003cbr/\u003e\nIf you want to check tslint manually (on all .ts files inside src folder) without committing, run: \u003c/br\u003e\n\n```\nnpm run tslint\n```\n\n## Run server in production on AWS lambda :rocket:\nFirst, make sure you have the [serverless platform](https://serverless.com/) installed. Then, execute the following command:\n\n```\nnpm run deploy\n```\n\nThat's it! The server will be deployed as a lambda on AWS\n\n## Connect to the server from client app\n\nSee the following [example](https://github.com/tomyitav/apollo-angular-client-starter) on how to connect to the server using apollo-angular.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomyitav%2Fapollo-typed-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomyitav%2Fapollo-typed-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomyitav%2Fapollo-typed-lambda/lists"}