Prerequisites
- An RMZ store with products and at least one payment method configured
- API keys from Dashboard > Settings > API Keys (public key, and secret key for server-side operations)
- Node.js 18+ installed
- Your custom domain configured in the store dashboard
Quick Start with the Template
The fastest way to get started is to clone the official Next.js template:1
Clone the template
2
Install dependencies
3
Configure environment variables
Create a
.env.local file in the project root:4
Start the development server
http://localhost:3000 to see your storefront.Starting from Scratch
If you prefer to build from an existing Next.js project:1. Install the SDK
2. Initialize the SDK
Create a shared SDK instance for your application:The SDK defaults to
https://front.rmz.gg/api as the API URL. You only need to set apiUrl if you are using a custom domain.3. Fetch and Display Products
4. Build the Cart
5. Implement Checkout
6. Customer Authentication
Deploying
Vercel (Recommended)
Other Platforms
The storefront is a standard Next.js app and can be deployed to any platform that supports Node.js:- Netlify: Add a
netlify.tomlwith the Next.js plugin - AWS Amplify: Connect your Git repository
- Docker: Use the official Next.js Docker example
- Self-hosted: Run
npm run build && npm start
Domain Configuration
After deploying, configure your custom domain:- Go to Dashboard > Settings > Domains
- Add your storefront domain (e.g.,
store.yourdomain.com) - Update your DNS records as instructed
- The Storefront API will accept requests from this domain automatically
Next Steps
Storefront SDK Docs
Full SDK API reference with all available methods.
Storefront API
Direct API reference if you prefer raw HTTP requests.

