Website
Basic Storefront
.Net Core 9 Basic Ecommerce Site Template - V1
About this template
A standalone, modern customer-facing website for your Okommerce store. It is a separate ASP.NET Core 9 MVC app that talks to your Okommerce API over HTTP using a Storefront API key — your store's admin/database is never exposed to the browser.
How to run:
1. Get an API key
Sign in to your Okommerce admin.
Go to Settings → Storefront API Keys (/Admin/ApiKeys).
Click Create, give it a name (e.g. "Main storefront"), and copy the key
shown (starts with sk_). It is shown once — store it safely.
2. Configure
Open appsettings.json and set two values:
json"Storefront": {
"ApiBaseUrl": "https://v5.okommerce.com/", // your API origin (no path)
"ApiKey": "sk_PASTE_YOUR_KEY_HERE", // the key from step 1
"Language": "en"
}
The app automatically calls {ApiBaseUrl}/api/v1/storefront/....
3. Run
This is a separate site from your admin/API. Open the folder in Visual
Studio (or run from the CLI) and start it:
bashdotnet run