Getting Started with Custom Storefronts
This guide will help you build your first custom storefront using Finqu’s tools and APIs.
Prerequisites
- Node.js 18+ installed
- A Finqu merchant account
- Basic familiarity with React and Next.js
Quick Start Options
Option 1: Start with Nexus Theme (Recommended)
The fastest way to get started is with the Nexus theme, which provides a complete Next.js storefront out of the box.
- Install the Finqu CLI (if not already installed):
npm install -g @finqu/cli- Sign in to your Finqu account:
finqu sign-in- Initialize a new storefront project:
finqu storefront init-
Follow the prompts to configure your storefront and select Nexus as your starting point.
-
Start the development server:
npm run devOption 2: Build from Scratch
If you prefer to build a custom storefront from scratch:
- Set up a Next.js project:
npx create-next-app@latest my-storefront
cd my-storefront- Install the Storefront SDK:
npm install @finqu/storefront-sdk-
Get your API key - Obtain your Storefront API key from the Channel settings in the Finqu admin area. Keys are prefixed with
fq_(e.g.,fq_OPmgGrIY...). -
Configure the SDK - Initialize the Storefront SDK with your API key:
import { StorefrontClient } from '@finqu/storefront-sdk';
const client = new StorefrontClient({
storeDomain: 'your-store.finqu.com',
apiKey: process.env.FINQU_STOREFRONT_API_KEY, // Store in environment variables
});- Configure customer authentication - Set up customer authentication flows.
- Connect to the Storefront GraphQL API - Use the SDK to query products, manage carts, and handle checkout.
Storefront SDK Documentation →
Next Steps
- Explore Nexus Theme - Learn about the official theme
- Set up Authentication - Implement customer authentication
- Use the Storefront SDK - Integrate with the GraphQL API
- CLI Commands - Manage your storefront with CLI
Need Help?
- Check the Storefront GraphQL API documentation
- Review API Reference
- Contact support for assistance