Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dabit3/cdk-appsync-neptune
A GraphQL API built with Amazon Neptune, AWS AppSync, and AWS Lambda
https://github.com/dabit3/cdk-appsync-neptune
Last synced: 3 months ago
JSON representation
A GraphQL API built with Amazon Neptune, AWS AppSync, and AWS Lambda
- Host: GitHub
- URL: https://github.com/dabit3/cdk-appsync-neptune
- Owner: dabit3
- Created: 2021-03-31T20:39:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T10:41:53.000Z (over 2 years ago)
- Last Synced: 2024-05-12T01:33:13.227Z (6 months ago)
- Language: TypeScript
- Size: 230 KB
- Stars: 36
- Watchers: 3
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - cdk-appsync-neptune
README
## GraphQL API with CDK, AppSync, and Amazon Neptune
This project deploys a basic GraphQL API built with Neptune Graph database, AWS AppSync, and AWS Lambda.
## Getting started
First, clone the project:
```sh
git clone [email protected]:dabit3/cdk-appsync-neptune.git
```Next, change into the directories and install the dependencies:
```sh
cdk cdk-appsync-neptunenpm install
# or
yarn
```Next, also change into the `lambda-fns` directory to install the dependencies there:
```sh
cd lambda-fnsnpm install
# or
yarn
```To deploy the API and services, build the project and then run the `deploy` command:
```sh
npm run build && cdk deploy
```## Testing it out
To test it out, open the [AWS AppSync Console](https://console.aws.amazon.com/appsync) and try running the following queries:
```graphql
query listPosts {
listPosts {
id
title
content
}
}mutation createPost {
createPost(post: {
content:"Hello world"
title: "My first pos!!"
}) {
id
title
content
}
}
```