Basic Setup
The setup process for a Headless Akinon Commerce Cloud Storefront will be guided in this page. Follow the steps below to get started.
Installation
To begin, it is recommended to use
yarn
as the package manager.If macOS is the operating system, Homebrew can be used for installation. For non-mac users, npm can be used for a global installation.
# For macOS users
brew install yarn
# For non-mac users
npm i -g yarnNext, the storefront needs to be installed by using the
projectzero
CLI.npx @akinon/projectzero@latest --create
Provide the following information:
- Brand name (eg. Project Zero) (required): Enter the name for your project.
- Project description (optional): Optionally provide a project description.
- Commerce URL (optional): Enter the URL to connect with Omnitron. This can be edited later from the environment file.
After providing the necessary information, navigate to the project folder.
cd project-path/project-name
Development
To start the development server, run the following command.
yarn dev
This will initiate the development environment for the Headless Akinon Commerce Cloud Storefront, allowing users to begin building and testing their storefront.
Production
To build and run the production version of the storefront, run the following command.
yarn build
yarn start