# Basic Setup

The setup process for a Headless ACC Storefront will be guided in this page. Follow the steps below to get started.

## <mark style="color:red;">Installation​</mark> <a href="#installation" id="installation"></a>

1. 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 yarn
   ```
2. Next, the storefront needs to be installed by using the `projectzero` CLI.

   ```
   npx @akinon/projectzero@latest --create
   ```
3. 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.
4. After providing the necessary information, navigate to the project folder.

   ```
   cd project-path/project-name
   ```

## <mark style="color:red;">Development</mark>​ <a href="#development" id="development"></a>

To start the development server, run the following command.

```
yarn dev
```

This will initiate the development environment for the Headless ACC Storefront, allowing users to begin building and testing their storefront.

## <mark style="color:red;">Production</mark>​ <a href="#production" id="production"></a>

To build and run the production version of the storefront, run the following command.

```
yarn build
yarn start
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akinon.com/technical-guides/project-zero/next.js/basic-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
