Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 2.02 KB

README.md

File metadata and controls

74 lines (49 loc) · 2.02 KB

Alokai Next.js Storefront Playground

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.

Tech Stack

Integrations

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.

Getting Started

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.

What's inside?

This monorepo includes the following packages/apps:

Apps and Packages

  • apps/storefront: a Next.js app that uses the Alokai Storefront
  • apps/middleware: Alokai Connect Middleware for the Storefront
  • packages/fakestore: a custom Fakestore API integration
  • packages/storyblok: a custom Storyblok API integration
  • packages/typescript-config: a custom TypeScript configuration for the monorepo
  • packages/eslint-config: a custom ESLint configuration for the monorepo

Build

To build all apps and packages, run the following command:

npm build

Useful Links

Learn more about the power of Turborepo: