Search Documentation
Search for a documentation page...
Installation
Clone, configure, and run the YNS storefront template locally.
Clone the Template
Use create-next-app to clone the storefront:
Or clone directly:
Install Dependencies
Environment Variables
Create a .env.local file in the project root:
Get your API key from the YNS dashboard under Settings > API Keys.
Staging vs Production
- Production keys (
sk-...) connect toyns.store - Staging keys (
sk-s-...) connect toyns.cx(sandbox)
The Commerce SDK automatically detects which environment to use based on the key prefix.
Run Development Server
The store will be available at localhost:3000.
Verify Setup
You should see your store's products on the homepage. If you see an error, check that:
- Your
YNS_API_KEYis set correctly in.env.local - Your store has at least one published product
- Your Stripe account is connected in the YNS dashboard