This repository contains a basic setup using Amplify (Framework based on Amazon Web Services AppSync)
-
Node:
- install nvm (https://github.com/nvm-sh/nvm)
- nvm install 12.0.0
- nvm use
-
Java 11
-
Amplify CLI
- npm install -g @aws-amplify/cli
-
AWS Config file
- If not already exists, create a new one:
- touch /Users/{myUserName}/.aws/config
- If not already exists, create a new one:
-
Project absolute path
- Go in the following file and change "projectPath" value with the absolute path of your project folder
- ./appsync-amplify-basic-setup/amplify/.config/local-env-info.json
- Go in the following file and change "projectPath" value with the absolute path of your project folder
- Run whole application locally:
- amplify mock
- URL:
- graphQL endpoint: http://localhost:20002/
- Query:
- try running following query and see the result:
query MyQuery {
getComment(input: 1)
}
or
query MyQuery {
getComment(input: 30)
}