# 6. Set Up Project Zero

Project Zero is Akinon's customizable frontend framework built on Next.js, designed to provide brands with a fast, modern, and flexible storefront experience. Once your products, prices, inventory, and channel settings are successfully configured in Omnitron, setting up Project Zero is the final step to bring your storefront to life.

This setup process connects your backend data to a fully functional frontend, enabling users to browse products, add them to cart, and complete orders using defined payment and shipping methods. Below is a step-by-step guide to setting up, configuring, and deploying your Project Zero application within the ACC platform.

Follow these instructions to:

* Create a new Project Zero app in ACC
* Configure environment variables and Git access
* Deploy your app and connect it to your project
* Go live with a fully integrated storefront experience

Let’s begin.

***

### 1. Creating a New Project Zero Application

To begin, you need to create a new Project Zero application in ACC:

{% stepper %}
{% step %}
Navigate to the **ACC Dashboard** and open the **My Applications** page.
{% endstep %}

{% step %}
Click on the **+ NEW APPLICATION** button.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2Fjuw2IXWzh6hBfce83VXG%2FScreenshot%202025-04-15%20at%2013.47.38.png?alt=media&#x26;token=150a7a82-59b4-47e0-8df9-06fb6767b4d1" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Fill in the form for Project Zero:

* **Application Type**: Select `Zero NextJS`
* **Product Images**: Upload at least 4 images.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2F6mq4WX4gEfSxcGDqzhfF%2FScreenshot%202025-04-15%20at%2013.47.22.png?alt=media&#x26;token=f1f31720-776a-4dc7-90bd-44b92bf51089" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
After completing the form, click **APPLY** to create your application. Your application will now appear on the **My Applications** page.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FstpDykjnQMrsYCji06sL%2Fimage.png?alt=media&#x26;token=b3806912-3237-488b-9071-e0f42127519a" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

### 2. CLI Setup and Project Initialization&#x20;

To set up your Project Zero storefront, begin by installing the required package manager and initializing the project using the Project Zero CLI tool.

{% stepper %}
{% step %}

### Install Yarn

It is recommended to use **Yarn** as the package manager. Depending on your operating system, follow the appropriate installation method:

**For macOS users:**

```bash
brew install yarn
```

**For non-macOS users:**

```bash
npm i -g yarn
```

{% endstep %}

{% step %}

### Initialize the Project with CLI

Use the CLI to generate your storefront project:

```bash
npx @akinon/projectzero@latest --create
```

When prompted, provide the following information:

* **Brand name (required):** Enter the name of your storefront (e.g., `Project Zero`).
* **Project description (optional):** Add an optional description for your project.
* **Commerce URL (optional):** Provide the URL to connect to Omnitron. This value can also be edited later in the environment configuration file.
  {% endstep %}

{% step %}

### Navigate the Project Directory

Once the setup is complete, move into the generated project directory:

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

{% endstep %}
{% endstepper %}

***

### 3. Adding Your SSH Key

To enable build and deploy operations via Git:

{% stepper %}
{% step %}
Generate your SSH public key and copy it to the clipboard:

```bash
cat ~/.ssh/id_rsa.pub | pbcopy
```

{% endstep %}

{% step %}
In ACC, navigate to **Settings > Public Keys**.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FdgB0ttfQrRuTqQoxmSHe%2FScreenshot%202025-04-15%20at%2017.09.59.png?alt=media&#x26;token=11757f02-609c-45cf-90dd-f63556a8b201" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click **+ NEW PUBLIC KEY**, enter a label and paste your copied key. Click **SAVE**.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FjawgM8shny5oxawJwtHG%2FScreenshot%202025-04-15%20at%2017.12.54.png?alt=media&#x26;token=4abaac11-4a4d-4fef-a2b2-dd34aa22bf57" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

### **4. Add the Remote Repository**

Connect your local directory to the repository ACC generated for your app:

{% stepper %}
{% step %}
In **My Applications**, locate your app and copy the **Repository URL**.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FLbz6K0zvpclUsw7eNKXh%2FScreenshot%202025-04-15%20at%2017.14.12.png?alt=media&#x26;token=8e89bd60-9126-435a-affc-86823b61a76b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In your local project directory:

```bash
git init

git remote add acc <acc-repository-url>

git remote -v
```

{% endstep %}
{% endstepper %}

***

### **5. Commit and Tag the Application**

{% stepper %}
{% step %}
Ensure all changes are committed and tag your version for deployment:

```bash
git add .

git commit -m "Initial Project Zero commit"

git tag <tag-name>

git push acc <tag-name>
```

Use a meaningful tag name that reflects your build version.
{% endstep %}
{% endstepper %}

***

### **6. Build from ACC**

To build your application:

{% stepper %}
{% step %}
Go to **My Applications**, and click on your Project Zero app.
{% endstep %}

{% step %}
In the **Versions** section, click the **BUILD** button.
{% endstep %}

{% step %}
Enter:

* The **tag name** you pushed
* An optional **description**
  {% endstep %}

{% step %}
Click **BUILD**.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FAqlnQQdkeC7ynvvWKnvb%2FScreenshot%202025-04-15%20at%2017.24.05.png?alt=media&#x26;token=15da0134-557f-4f42-9263-6cd83d7ea741" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Once the build status changes to **Completed**, mark it as the **Stable Version**.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FRTNhLpumbuhpE2mGjXvn%2FScreenshot%202025-04-15%20at%2017.26.16.png?alt=media&#x26;token=70a56c5a-29b8-463f-a87a-fbacb98e1fbf" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### **7. Add App to Project via App Store**

To link the application to your ACC project:

{% stepper %}
{% step %}
Open the **App Store** in ACC. Locate your Project Zero application and click on it.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FentTAvBrg49HK2YDigMK%2FScreenshot%202025-04-15%20at%2017.30.53.png?alt=media&#x26;token=9d71eea3-338a-45ab-891e-5098addeb7f0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Choose the project to install the app into. Select `Commerce` as the **Connected Service.** Click **NEXT.**

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FXiSgSAAcLUXDkjw30HCf%2FScreenshot%202025-04-15%20at%2018.11.46.png?alt=media&#x26;token=f5a852d4-508a-415e-97e7-4622225671da" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Then **INSTALL** on the approval page.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FCVpkj5ddtgv2WKao5aWv%2FScreenshot%202025-04-15%20at%2015.33.25.png?alt=media&#x26;token=a55e72a4-62c5-4a68-9051-2e49499765fb" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Once the installation is complete, you’ll see a success message.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2Fo2TiO5LZm2d9it4WAtvh%2FScreenshot%202025-04-15%20at%2015.33.33.png?alt=media&#x26;token=43baffb6-b6d3-4ce7-89fa-85de52d84323" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Your app is now listed under the **Applications** tab in your **Project Detail Page**.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2F5z48Cifo6LUUdf3gKTbT%2FScreenshot%202025-04-15%20at%2017.41.49.png?alt=media&#x26;token=78aeba7c-eac3-4192-ba4a-b85556c2e5cf" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

### 8. Add Environment Variables

In your application settings on ACC, add the following environment variables:

| Variable Name         | Description                                                                  | Example URL / Value                                |
| --------------------- | ---------------------------------------------------------------------------- | -------------------------------------------------- |
| `NEXTAUTH_URL`        | Project Zero URL                                                             | `https://your-zero-app.lb.akinoncloud.com`         |
| `NEXTAUTH_SECRET`     | <p>Auth secret, run in terminal:<br><code>openssl rand -base64 32</code></p> | `iHBeNJAOVWvFZL4PmyHVA7b6y28Tvc47NJi4zdX2sPI=`     |
| `NEXT_PUBLIC_URL`     | Same as `NEXTAUTH_URL`                                                       | `https://your-zero-app.lb.akinoncloud.com`         |
| `SERVICE_BACKEND_URL` | Commerce service URL                                                         | `https://your-commerce-service.lb.akinoncloud.com` |

To add them:

{% stepper %}
{% step %}
Go to **Project Detail > Project Zero Application Detail** page.
{% endstep %}

{% step %}
Open the **Environment Variables** tab.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FZVxnGzMuegRaht83I8Ny%2Fimage.png?alt=media&#x26;token=08f67b99-058a-4616-aeb8-933eb4058f11" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click **+ NEW ENVIRONMENT VARIABLE** for each entry.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FteM501g412Ivw3WJjKT3%2Fimage.png?alt=media&#x26;token=ab7f649a-7897-4289-91e5-385f85ae4aea" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### **9. Deploy to Project**

To apply your changes and reflect the Project Zero layout on the storefront:

{% stepper %}
{% step %}
In **My Applications**, open your Project Zero app.&#x20;
{% endstep %}

{% step %}
In the **Installed Projects** section, choose your project. Click **DEPLOY SELECTED PROJECTS.**

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FvWUkpxh4UKkjcNrTxSWd%2FScreenshot%202025-04-15%20at%2017.45.15.png?alt=media&#x26;token=5872ef93-d3de-4741-8981-0441a2477d54" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In the pop-up:

* Enter the **tag name** of your last successful build.
* Start the deployment.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FfOe0i5IKO5kSatdnSQFk%2FScreenshot%202025-04-15%20at%2017.46.50.png?alt=media&#x26;token=d8724deb-7e49-43a8-bdc4-50165c92a856" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Once complete, the deployment status will update to `Deployed`.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2F8ih86yxVzZY5D1TBaxNC%2FScreenshot%202025-04-15%20at%2017.55.31.png?alt=media&#x26;token=2ee67a38-449f-4244-95cb-64164b65cebf" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

### **10. Access the Storefront**

You’re all set! To access your storefront:

{% stepper %}
{% step %}
Go to the **Project Detail** page. Click into the **Project Zero app details**.
{% endstep %}

{% step %}
Find the **Project Zero URL.**

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FFQf25XGdnAHCHAS8fQsc%2FScreenshot%202025-04-15%20at%2018.08.30.png?alt=media&#x26;token=5df301da-c4d7-404e-8db9-4b91428476dc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Open the link in your browser with `/list` at the end, e.g.:

```
https://your-zero-app.lb.akinoncloud.com/list
```

{% endstep %}

{% step %}
You should see your listed products, which means your setup was successful.

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2Fl7pn4wibANR1fLaWqlNA%2FScreenshot%202025-04-15%20at%2018.10.10.png?alt=media&#x26;token=6acf55ce-d74c-435c-9206-b2361eb6d0f4" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FujZlCsmPy6CG7cwXEKLT%2Fimage.png?alt=media&#x26;token=e3a386a8-1815-4a0f-a35b-80bc5d10164b" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://164766933-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FszVHHD4skw8SftKawRsw%2Fuploads%2FLKmwRihYdklsyGPdDyYM%2Fimage.png?alt=media&#x26;token=63cd6081-b94b-48b3-8d15-a74aa9943e64" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

With your Project Zero storefront live and fully integrated, your commerce environment is now ready for action.&#x20;

Customers can browse your catalog, add products to their cart, choose from your configured shipping options, and complete their orders using the defined payment methods.&#x20;

All backend configurations—from product data to pricing and logistics—are now perfectly aligned with the frontend experience.&#x20;

Congratulations! Your shop is officially open for business. Time to welcome your first customers and start selling! :rocket:
