This is a minimal example of the Alokai Storefront using Next.js and Turbo. It includes a simple product listing page and a product detail page, as well as a Storyblok CMS driven homepage.
This monorepo includes the following integrations:
- Fakestore Integration - a custom Fakestore API integration to fetch products and categories
- Storyblok Integration - a custom Storyblok API integration to fetch homepage content
Integrations packages are located in the packages
directory.
First, clone the repository:
git clone [email protected]:vuestorefront/storefront-playground.git
Then, install the dependencies:
cd storefront-playground
npm install
Finally, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
This monorepo includes the following packages/apps:
apps/storefront
: a Next.js app that uses the Alokai Storefrontapps/middleware
: Alokai Connect Middleware for the Storefrontpackages/fakestore
: a custom Fakestore API integrationpackages/storyblok
: a custom Storyblok API integrationpackages/typescript-config
: a custom TypeScript configuration for the monorepopackages/eslint-config
: a custom ESLint configuration for the monorepo
To build all apps and packages, run the following command:
npm build
Learn more about the power of Turborepo: