Git Product home page Git Product logo

create-saleor-app's Introduction

Create Next.js Shop

create-next-shop is the easiest way to get started creating the e-commerce applications with Next.js. This tool enables you to quickly start building a new Next.js application for shopping. It uses Saleor GraphQL API for the backend. It sets everything up for you.

npx create-next-shop

To create a new app in a specific folder, you can provide a name as an argument. For example, the following command will create a new Next.js app called my-shop in a folder with the same name:

npx create-next-shop my-shop

Options

create-next-shop comes with the following options:

  • --use-npm - Explicitly tell the CLI to use npm instead of yarn.

Why use Create Next Shop?

create-next-shop allows you to create a new Next.js shopping app within seconds. It is officially maintained by the Saleor team, who have vast experience with creating production-grade shopping experiences.

This tempalate creator comes with a number of benefits:

  • Interactive Experience: Running npx create-next-shop (with no arguments) launches an interactive experience that guides you through setting up a project.
  • Offline Support: Create Next Shop will automatically detect if you're offline and bootstrap your project using your local package cache.

create-saleor-app's People

Contributors

zaiste avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

create-saleor-app's Issues

Peer dependency issue when installing.

When I'm running create-next-shop command, the installation gets aborted due to a peer dependency issue.

❯ npx create-next-shop my-store

Using npm.

Installing dependencies:
- react
- react-dom
- next
- graphql
- clsx
- @apollo/client
- @headlessui/react
- @heroicons/react

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/graphql
npm WARN   graphql@"*" from the root project
npm WARN   1 more (@apollo/client)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer graphql@"^14.0.0 || ^15.0.0" from @apollo/[email protected]
npm WARN node_modules/@apollo/client
npm WARN   @apollo/client@"*" from the root project

added 314 packages, and audited 315 packages in 1m

51 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Installing devDependencies:
- eslint
- eslint-config-next
- @graphql-codegen/cli
- @graphql-codegen/introspection
- @graphql-codegen/typescript
- @graphql-codegen/typescript-operations
- @graphql-codegen/typescript-react-apollo
- autoprefixer
- postcss
- tailwindcss
- typescript
- @types/react

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/graphql
npm ERR!   graphql@"16.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from @graphql-codegen/[email protected]
npm ERR! node_modules/@graphql-codegen/introspection
npm ERR!   dev @graphql-codegen/introspection@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

Aborting installation.
  npm install --save-exact --save-dev eslint eslint-config-next @graphql-codegen/cli @graphql-codegen/introspection @graphql-codegen/typescript @graphql-codegen/typescript-operations @graphql-codegen/typescript-react-apollo autoprefixer postcss tailwindcss typescript @types/react has failed.

eresolve-report.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.