Skip to content

0xsequence-demos/marketplace-boilerplate

Repository files navigation

marketplace-boilerplate

A starter White-label Marketplace boilerplate, powered by Sequence.

Setup

  1. Set up a white-label marketplace in builder https://docs.sequence.xyz/solutions/marketplaces/white-label-marketplace

  2. Add an .env file to the root of the project with the following variables:

You can run

pnpm env-file

To create sample file from .env.example

File:

# API key from Builder > Settings > API keys. e.g. https://sequence.build/project/{PROJECT_ID}/settings/apikeys
NEXT_PUBLIC_SEQUENCE_ACCESS_KEY="XXXXXX"
# Project ID from Builder, found in the URL of the project, e.g. https://sequence.build/project/{PROJECT_ID}
NEXT_PUBLIC_SEQUENCE_PROJECT_ID="XXXXXX"

# Optional: For integrating with WalletConnect, set the WalletConnect project ID
# NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="XXXXXX"

App will run at port 4420.

Start

To start and build the application, run the following commands:

pnpm install
pnpm build
pnpm start

Then you should be able to access the page on http://localhost:4420

Install

Install dependencies

pnpm install

Development

Run in development mode, watches changes in code and rebuild on the fly

pnpm dev

Build

Build server

pnpm build

Common Errors

If you forget to change your marketplace type in Builder before building the app, you will need to remove the .next cache and rerun the server.

About

Starter repo for custom Marketplace integrations with Sequence Marketplace SDK

Resources

Stars

Watchers

Forks

Languages