A Yeoman generator for Serverless Shopify apps using Next.js, Koa, Prisma GraphQL & Shopify's Polaris
npm install -g yonpm install -g generator-shopify-nextjs
Then generate your new project:
cd /path/to/empty/directoryyo shopify-nextjs name-of-app
This is the default data store that's hosted at app.prisma.io. It's a hosted GraphQL service that has a free tier, so it's easy to get started. To initialize a prisma instance, do the following:
cd dataprisma initcp datamodel.prisma.example datamodel.prismaprisma deploy
If you want to use a different data store, it's easy enough to replace with whatever you
server.js, you just have to store the
accessToken that Shopify gives you
upon app installation using your own database libraries.
- TODO - Explain how to register an app as a Shopify partner.
- TODO - Explain how this is where the API keys for your new Shopify app come from.
Fill out .env
Your .env should have the following entries:
SHOPIFY_API_KEY=... SHOPIFY_SECRET=... SERVER_SECRET=... NEXT_STATIC_GRAPHQL_URI=...
npm i -g nownow
MIT © Dimension Software