当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

generator-shopify-nextjs

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 姚智
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

generator-shopify-nextjs

A Yeoman generator for Serverless Shopify apps using Next.js, Koa, Prisma GraphQL & Shopify's Polaris

The Stack

Installation

First, install Yeoman and generator-shopify-nextjs using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-shopify-nextjs

Then generate your new project:

cd /path/to/empty/directory
yo shopify-nextjs name-of-app

Setup

Prisma

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 data
prisma init
cp datamodel.prisma.example datamodel.prisma
prisma deploy

If you want to use a different data store, it's easy enough to replace with whatever youwant. In server.js, you just have to store the accessToken that Shopify gives youupon app installation using your own database libraries.

Shopify Partner

  • 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=...

Deployment

npm i -g now
now

REPL

bin/repl

License

MIT © Dimension Software

 相关资料
  • Dawn 代表了一种以 HTML 为先,只需要 JavaScript 的主题开发方法。它是 Shopify 第一个内置性能、灵活性和 Online Store 2.0 功能的可用主题源,并作为构建 Shopify 主题的参考。 特性: 最纯粹形式的网络原生 精益、快速和可靠 JavaScript 不是必需的 服务器呈现 功能性 入门 Fork 存储库并克隆它: git clone git@gith

  • Shopify Packer Modern development tool for Shopify using Webpack 5. Easy to extend and customize, zero build config, comes with starter themes and compatible with existing Shopify sites. Features Webp

  • Laravel Shopify App A full-featured Laravel package for aiding in Shopify App development, similar to shopify_app for Rails. Works for Laravel 7 and up. Table of Contents * Wiki pages Goals Documentat

  • Polaris 是 Shopify 的体验平台,该存储库专注于集中系统、文档和基础。 如何使用这个 repo 确保计算机上安装了 Git 和 Node.js,然后运行以下命令开始: $ git clone https://github.com/Shopify/polaris.git # git clone repository$ cd polaris

  • Shopify ThemeKit - Webpack Development tool for Shopify using webpack and themekit. Check out the node package version: Shopify Packer Requirements Getting Started Theme files Commands Features Ready

  • @shopify/koa-shopify-auth Middleware to authenticate a Koa application with Shopify. Sister module to @shopify/shopify-express, but simplified. Features you might know from the express module like the