Example store starter template built with Contentful and Hydrogen framework from Shopify
The Contentful and Hydrogen Starter is a template that allows users to create a Shopify custom storefront using React framework and SDK, Hydrogen, and the flexible headless CMS, Contentful. This combination enables users to build fast and dynamic Shopify custom storefronts with flexible content models and field editors for easy content management.
To get started with the Contentful and Hydrogen Starter, the following requirements must be met:
Additionally, the user should have a Contentful space Id and preview access token.
For previewing a production build, users can run a local preview of their Hydrogen app by building it and then running the command “yarn preview”.
For running tests, basic end-to-end tests are included in the template’s /tests/e2e folder. Users can run these tests in development mode and they will automatically reload when changes are made to the component provided to hydrogen.watchForUpdates(). They can also run tests in a continuous-integration environment like GitHub Actions.
The Contentful and Hydrogen Starter is a template that combines the power of Hydrogen, a React framework and SDK, with Contentful, a flexible and easy headless CMS. This template allows users to create custom Shopify storefronts with fast and dynamic functionality. It includes features such as styling with Tailwind, end-to-end testing with Playwright, unit testing with Vitest and Testing Library, code formatting with Prettier, and javascript linting with ESLint and the Hydrogen ESLint plugin. The installation process requires meeting certain requirements and configuring the necessary files. Users can also preview a production build and run tests in a development or continuous-integration environment.