{"id":16181830,"url":"https://github.com/ericclemmons/create-graphql-app","last_synced_at":"2026-02-27T06:15:06.318Z","repository":{"id":38801965,"uuid":"207678829","full_name":"ericclemmons/create-graphql-app","owner":"ericclemmons","description":"Add an Amplify Function to `create-react-app`.","archived":false,"fork":false,"pushed_at":"2023-01-04T09:49:58.000Z","size":1858,"stargazers_count":3,"open_issues_count":28,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T22:52:42.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ericclemmons.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":"2019-09-10T23:06:58.000Z","updated_at":"2019-11-21T12:13:57.000Z","dependencies_parsed_at":"2022-09-12T01:50:49.597Z","dependency_job_id":null,"html_url":"https://github.com/ericclemmons/create-graphql-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericclemmons/create-graphql-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fcreate-graphql-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fcreate-graphql-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fcreate-graphql-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fcreate-graphql-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericclemmons","download_url":"https://codeload.github.com/ericclemmons/create-graphql-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fcreate-graphql-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265538778,"owners_count":23784652,"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-10-10T06:28:14.225Z","updated_at":"2026-02-27T06:15:06.283Z","avatar_url":"https://github.com/ericclemmons.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `create-graphql-app`\n\n\u003e Add a GraphQL lamda to `create-react-app`.\n\n1. `yarn create react-app create-graphql-app`\n1. \u003cdetails\u003e\n   \u003csummary\u003e\u003ccode\u003eamplify init\u003c/code\u003e\u003c/summary\u003e\n\n   ```\n   Note: It is recommended to run this command from the root of your app directory\n   ? Enter a name for the project create-graphql-app\n   ? Enter a name for the environment dev\n   ? Choose your default editor: Visual Studio Code\n   ? Choose the type of app that you're building javascript\n   Please tell us about your project\n   ? What javascript framework are you using react\n   ? Source Directory Path:  src\n   ? Distribution Directory Path: build\n   ? Build Command:  npm run-script build\n   ? Start Command: npm run-script start\n   Using default provider  awscloudformation\n   ```\n\n\n      For more information on AWS Profiles, see:\n      https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html\n\n      ? Do you want to use an AWS profile? Yes\n      ? Please choose the profile you want to use default\n      ⠙ Initializing project in the cloud...\n\n      CREATE_IN_PROGRESS create-graphql-app-dev-20190910153235 AWS::CloudFormation::Stack Tue Sep 10 2019 15:32:36 GMT-0700 (Pacific Daylight Time) User Initiated\n      CREATE_IN_PROGRESS AuthRole                              AWS::IAM::Role             Tue Sep 10 2019 15:32:39 GMT-0700 (Pacific Daylight Time)\n      CREATE_IN_PROGRESS DeploymentBucket                      AWS::S3::Bucket            Tue Sep 10 2019 15:32:39 GMT-0700 (Pacific Daylight Time)\n      CREATE_IN_PROGRESS AuthRole                              AWS::IAM::Role             Tue Sep 10 2019 15:32:39 GMT-0700 (Pacific Daylight Time) Resource creation Initiated\n      CREATE_IN_PROGRESS UnauthRole                            AWS::IAM::Role             Tue Sep 10 2019 15:32:39 GMT-0700 (Pacific Daylight Time)\n      CREATE_IN_PROGRESS DeploymentBucket                      AWS::S3::Bucket            Tue Sep 10 2019 15:32:40 GMT-0700 (Pacific Daylight Time) Resource creation Initiated\n      CREATE_IN_PROGRESS UnauthRole                            AWS::IAM::Role             Tue Sep 10 2019 15:32:40 GMT-0700 (Pacific Daylight Time) Resource creation Initiated\n      ⠏ Initializing project in the cloud...\n\n      CREATE_COMPLETE AuthRole   AWS::IAM::Role Tue Sep 10 2019 15:32:53 GMT-0700 (Pacific Daylight Time)\n      CREATE_COMPLETE UnauthRole AWS::IAM::Role Tue Sep 10 2019 15:32:54 GMT-0700 (Pacific Daylight Time)\n      ⠇ Initializing project in the cloud...\n\n      CREATE_COMPLETE DeploymentBucket AWS::S3::Bucket Tue Sep 10 2019 15:33:00 GMT-0700 (Pacific Daylight Time)\n      ⠙ Initializing project in the cloud...\n\n      CREATE_COMPLETE create-graphql-app-dev-20190910153235 AWS::CloudFormation::Stack Tue Sep 10 2019 15:33:03 GMT-0700 (Pacific Daylight Time)\n      ✔ Successfully created initial AWS cloud resources for deployments.\n      ✔ Initialized provider successfully.\n      Initialized your environment successfully.\n\n      Your project has been successfully initialized and connected to the cloud!\n\n      Some next steps:\n      \"amplify status\" will show you what you've added already and if it's locally configured or deployed\n      \"amplify \u003ccategory\u003e add\" will allow you to add features like user login or a backend API\n      \"amplify push\" will build all your local backend resources and provision it in the cloud\n      \"amplify publish\" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud\n\n      Pro tip:\n      Try \"amplify add api\" to create a backend API and then \"amplify publish\" to deploy everything\n      ```\n\n    \u003c/details\u003e\n\n1.  \u003cdetails\u003e\n    \u003csummary\u003e\u003ccode\u003eamplify function add\u003c/code\u003e\u003c/summary\u003e\n\n    ```\n    ❯ amplify function add\n    Using service: Lambda, provided by: awscloudformation\n    ? Provide a friendly name for your resource to be used as a label for this category in the project: graphql\n    ? Provide the AWS Lambda function name: graphql\n    ? Choose the function template that you want to use: Serverless express function (Integration with Amazon API Gateway)\n    ? Do you want to access other resources created in this project from your Lambda function? No\n    ? Do you want to edit the local lambda function now? No\n    Successfully added resource graphql locally.\n\n    Next steps:\n    Check out sample function code generated in \u003cproject-dir\u003e/amplify/backend/function/graphql/src\n    \"amplify function build\" builds all of your functions currently in the project\n    \"amplify function invoke graphql\" enables you to test a function locally\n    \"amplify push\" builds all of your local backend resources and provisions them in the cloud\n    \"amplify publish\" builds all of your local backend and front-end resources (if you added hosting category) and provisions them in the cloud\n\n    ```\n\n    \u003c/details\u003e\n\n1.  \u003cdetails\u003e\n    \u003csummary\u003e\u003ccode\u003eamplify add api\u003c/code\u003e\u003c/summary\u003e\n\n    ```\n    ❯ amplify add api\n    ? Please select from one of the below mentioned services REST\n    ? Provide a friendly name for your resource to be used as a label for this category in the project: graphql\n    ? Provide a path (e.g., /items) /graphql\n    ? Choose a Lambda source Use a Lambda function already added in the current Amplify project\n    ? Choose the Lambda function to invoke by this path graphql\n    ? Restrict API access No\n    ? Do you want to add another path? No\n    Successfully added resource graphql locally\n\n    Some next steps:\n    \"amplify push\" will build all your local backend resources and provision it in the cloud\n    \"amplify publish\" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud\n\n    ```\n\n    \u003c/details\u003e\n\n1.  \u003cdetails\u003e\n    \u003csummary\u003e\u003ccode\u003eamplify mock\u003c/code\u003e\u003c/summary\u003e\n\n    ```\n    ❯ amplify mock\n    Some resources have changed locally and these resources are not mockable. The resources listed below need to be pushed to the cloud before starting the mock server.\n\n    Current Environment: dev\n\n    | Category | Resource name | Operation | Provider plugin   |\n    | -------- | ------------- | --------- | ----------------- |\n    | Api      | graphql       | Create    | awscloudformation |\n    | Function | graphql       | Create    | awscloudformation |\n    ? Are you sure you want to continue? Yes\n    ⠹ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_IN_PROGRESS create-graphql-app-dev-20190910153235 AWS::CloudFormation::Stack Tue Sep 10 2019 16:01:21 GMT-0700 (Pacific Daylight Time) User Initiated\n    UPDATE_IN_PROGRESS functiongraphql                       AWS::CloudFormation::Stack Tue Sep 10 2019 16:01:25 GMT-0700 (Pacific Daylight Time)\n    ⠇ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_IN_PROGRESS create-graphql-app-dev-20190910153235-functiongraphql-14MIHPQ8XJKWO AWS::CloudFormation::Stack Tue Sep 10 2019 16:01:26 GMT-0700 (Pacific Daylight Time) User Initiated\n    ⠏ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_IN_PROGRESS LambdaExecutionRole AWS::IAM::Role Tue Sep 10 2019 16:01:32 GMT-0700 (Pacific Daylight Time) Requested update requires the creation of a new physical resource; hence creating one.\n    UPDATE_IN_PROGRESS LambdaExecutionRole AWS::IAM::Role Tue Sep 10 2019 16:01:33 GMT-0700 (Pacific Daylight Time) Resource creation Initiated\n    ⠋ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_COMPLETE LambdaExecutionRole AWS::IAM::Role Tue Sep 10 2019 16:01:47 GMT-0700 (Pacific Daylight Time)\n    ⠸ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_IN_PROGRESS LambdaFunction AWS::Lambda::Function Tue Sep 10 2019 16:01:50 GMT-0700 (Pacific Daylight Time)\n    UPDATE_COMPLETE    LambdaFunction AWS::Lambda::Function Tue Sep 10 2019 16:01:51 GMT-0700 (Pacific Daylight Time)\n    ⠙ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_IN_PROGRESS lambdaexecutionpolicy AWS::IAM::Policy Tue Sep 10 2019 16:01:53 GMT-0700 (Pacific Daylight Time)\n    ⠙ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_COMPLETE lambdaexecutionpolicy AWS::IAM::Policy Tue Sep 10 2019 16:02:01 GMT-0700 (Pacific Daylight Time)\n    ⠦ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_COMPLETE_CLEANUP_IN_PROGRESS create-graphql-app-dev-20190910153235-functiongraphql-14MIHPQ8XJKWO AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:04 GMT-0700 (Pacific Daylight Time)\n    ⠇ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_COMPLETE functiongraphql AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:13 GMT-0700 (Pacific Daylight Time)\n    ⠦ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_IN_PROGRESS apigraphql AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:16 GMT-0700 (Pacific Daylight Time)\n    UPDATE_COMPLETE    apigraphql AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:16 GMT-0700 (Pacific Daylight Time)\n    ⠸ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_COMPLETE_CLEANUP_IN_PROGRESS create-graphql-app-dev-20190910153235 AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:19 GMT-0700 (Pacific Daylight Time)\n    UPDATE_IN_PROGRESS                  apigraphql                            AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:20 GMT-0700 (Pacific Daylight Time)\n    UPDATE_COMPLETE                     apigraphql                            AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:20 GMT-0700 (Pacific Daylight Time)\n    UPDATE_IN_PROGRESS                  functiongraphql                       AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:21 GMT-0700 (Pacific Daylight Time)\n    ⠏ Updating resources in the cloud. This may take a few minutes...\n\n    DELETE_IN_PROGRESS LambdaExecutionRole AWS::IAM::Role Tue Sep 10 2019 16:02:22 GMT-0700 (Pacific Daylight Time)\n    ⠧ Updating resources in the cloud. This may take a few minutes...\n\n    DELETE_COMPLETE LambdaExecutionRole                                                 AWS::IAM::Role             Tue Sep 10 2019 16:02:24 GMT-0700 (Pacific Daylight Time)\n    UPDATE_COMPLETE create-graphql-app-dev-20190910153235-functiongraphql-14MIHPQ8XJKWO AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:25 GMT-0700 (Pacific Daylight Time)\n    ⠏ Updating resources in the cloud. This may take a few minutes...\n\n    UPDATE_COMPLETE functiongraphql                       AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:32 GMT-0700 (Pacific Daylight Time)\n    UPDATE_COMPLETE create-graphql-app-dev-20190910153235 AWS::CloudFormation::Stack Tue Sep 10 2019 16:02:32 GMT-0700 (Pacific Daylight Time)\n    ✔ All resources are updated in the cloud\n\n    ```\n\n    \u003c/details\u003e\n\n1.  **Blocked**. There doesn't seem to be a watch-mode for lambdas.\n\n---\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr\u003e\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting\n\n### Analyzing the Bundle Size\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\n\n### Making a Progressive Web App\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\n\n### Advanced Configuration\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration\n\n### Deployment\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/deployment\n\n### `npm run build` fails to minify\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Fcreate-graphql-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericclemmons%2Fcreate-graphql-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Fcreate-graphql-app/lists"}