A simple demo e-commerce, built with NextJS and Shopify: https://nextjs-shopify-omega.vercel.app/
- NextJS
- Typescript
- Next API
- Shopify
- Nexus
- Graphql
- Styled Components
-
Clone the repository
Use git to clone the repository.
# clone the project using Git git clone https://github.com/escapemanuele/nextjs-shopify your-project-name
-
Install the packages
Navigate into your new site’s directory and install the required packages.
cd your-project-name npm install
-
Required Environmental Variables
COOKIE_CRYPT=a-complex-enough-crypt-key SHOPIFY_GRAPHQL_ENDPOINT=https://your-shop-name.myshopify.com/api/latest-graphql-version/graphql.json STOREFRONT_ACCESS_TOKEN=...(retrieve it from shopify) LOCAL_API_GRAPHQL_ENDPOINT=your-url/api/graphql (localhost:PORT/api/graphql in env.development)
-
Start developing.
Finally you are ready to see your project. Start the engine!
npm run start
-
Open the source code and start editing!
Your site is now running at
http://localhost:8006
!Feel free to change everything you want!