This is a headless ecommerce starter kit for KiboCommerce platform using Next.JS
Demo: https://nextjs-storefront-kibo-commerce.vercel.app
- Performant by default
- SEO Ready
- Internationalization
- Responsive
- UI Components built on top of Material UI 5
- Theming
- KiboCommerce data hooks
- PWA Ready
- Omni Channel Capability (Ship to home and Pickup in Store support)
- Clone this repo
git clone https://github.com/KiboSoftware/nextjs-storefront.git
- Change into directory and install dependencies
npm install
- Copy .env template
cp .env.template .env.local
- Configure env variables for your Kibo Commerce environment
- Start Dev server
npm run dev
.env example
KIBO_API_HOST=t1234-s1234.sandbox.mozu.com
KIBO_AUTH_HOST=home.mozu.com
KIBO_CLIENT_ID=KIBO_APP.1.0.0.Release
KIBO_SHARED_SECRET=12345_Secret
KIBO_PCI_HOST=payments-sb.mozu.com
The following data is required to configure the storefront to communicate with your Kibo API Client.
apiHost
- Your Kibo Commerce API Host.authHost
- Kibo Commerce Authentication Host Server. It is used to request an access token from Kibo Commerce OAuth 2.0 service. Production and Production sandbox, usehome.mozu.com
clientId
- Unique Application (Client) ID of your ApplicationsharedSecret
- Secret API key used to authenticate application. Viewable from your Kibo eCommerce Dev CenterpciHost
- usepayments-sb.mozu.com
for sandbox orpmts.mozu.com
for production tenant
Visit Kibo documentation for more details on API authentication
npm run dev # Start dev server
npm run build # Run production build
npm run start # Run production start
npm run generate-types # generate typescript Kibo API types from GraphQL Schema
npm run storybook # start storybook for
npm run test # run unit / integration tests
- Framework - Next.JS
- Component Library - Material UI 5
- Testing - Jest
- Data Fetching / State Management - React Query
- Localization - Next i18Next
All contributions welcome!