## Prerequisites

- Node.js 22+ (or Bun)
- A [YNS account](https://yns.store/manage)
- A Vercel account (for deployment)

## 1. Create Your Store

Sign up at [yns.store/manage](https://yns.store/manage) and create a new store. The setup wizard will guide you through:

- Store name and description
- Connecting your Stripe account
- Adding your first products

## 2. Get Your API Key

In your YNS dashboard, go to **Settings → API → API keys** and create a new key. Copy the key – you'll need it in the next step.

API keys start with `sk-` for production and `sk-s-` for staging.

## 3. Clone the Storefront

```bash
npx create-next-app@latest my-store --example https://github.com/yournextstore/yournextstore
cd my-store
```

## 4. Configure

Create a `.env.local` file with your API key:

```bash
YNS_API_KEY=sk-your-api-key-here
```

## 5. Run Locally

```bash
npm install
npm run dev
```

Open [localhost:3000](http://localhost:3000) to see your store with live product data.

## 6. Deploy to Vercel

```bash
npx vercel --prod
```

Or use the one-click deploy button in the [storefront README](https://github.com/yournextstore/yournextstore).

## Next Steps

- [First Store Setup](/docs/getting-started/first-store-setup) – add products, configure payments, customize your store
- [Storefront Customization](/docs/storefront/customization) – change the look and feel
- [Commerce SDK](/docs/commerce-sdk/overview) – build custom integrations