If you have found a bug or have a feature request then please create an issue in this repository (please search first in case a similar issue already exists).
- Node.js, latest LTS is recommended
- Install
pnpm
(for installing dependencies) - Install the AWS CLI (for deploying on AWS)
- Install the AWS CDK (for deploying on AWS)
- Install
yarn@1
(for building the project before deploy) - Install
docker
(for bundling the project before deploy)
To setup the project for local development, follow these steps:
# clone the repo
git clone https://github.com/maoosi/prisma-appsync.git
# install dependencies
cd prisma-appsync
pnpm install
# install cdk boilerplate dependencies
pnpm install:boilerplate
To run the automated tests, follow these steps:
# build project and run tests
pnpm test
To quickly create a test app using your local prisma-appsync
directory, follow these steps:
# make sure to run from the same level as `prisma-appsync` dir
[ -d "./prisma-appsync" ] && echo "You are at the right location." || echo "Wrong location. Make sure to be at the same level as prisma-appsync dir."
# run the generator using the --test parameter
yarn create prisma-appsync-app . --test
# cd into the new test app folder
cd prisma-appsync-testapp-<timestamp>
# run prisma generate and deploy on AWS
yarn deploy
Please note that
yarn create prisma-appsync-app . --test
will use a special version of the Prisma-AppSync boilerplate that will automatically link the prisma-appsync dependency to your local dev setup (prisma-appsync
directory located at the same level).
By submitting your code to the Prisma-AppSync project, you are granting the project maintainers a right to use that code and provide it to others under the BSD 2-Clause License attached to the project. You are also certifying that you wrote it, and that you are allowed to license it to us.