Deploy a Community Marketplace

Reservoir's open-source marketplace is designed to demonstrate the power of Reservoir and quick start your marketplace development project. Follow these steps below and deploy your own marketplace in minutes.

19071907

Example: BAYC Community Marketplace

Prerequisites ⚙️

Fork Marketplace Repo

Once you've got your Github account set up you can visit our open-source marketplace repository and fork it to your own account.

600600

Create Marketplace Project in Vercel

Open Vercel and click New Project. Select the marketplace repo from your GitHub account and click import. Rename the project and click deploy.

600600 600600

Now let's configure it to make it truly yours.

Configure Marketplace with Environment Variables

The marketplace project is highly configurable to suit many use cases. The configuration of your marketplace configuration is controlled via environment variables which can be added and updated directly in Vercel under project settings. Let's start with some basic ones.

600600

Set up environment
NEXT_PUBLIC_RESERVOIR_API_BASE = https://api.reservoir.tools/
NEXT_PUBLIC_CHAIN_ID = 1
NEXT_PUBLIC_PROXY_API_BASE = /api/reservoir
RESERVOIR_API_KEY = Get your own API key.
NEXT_PUBLIC_ALCHEMY_ID = Get your own API key here.

Set up marketplace
NEXT_PUBLIC_SOURCE_ID = My Market
NEXT_PUBLIC_SOURCE_ICON = https://www.mysite.com/mylogo.png

Set a collection
NEXT_PUBLIC_REDIRECT_HOMEPAGE = true
NEXT_PUBLIC_COLLECTION = Add your collection contract address.

Set a theme
NEXT_PUBLIC_NAVBAR_LOGO= https://www.mysite.com/mylogo.png
NEXT_PUBLIC_DESKTOP_NAVBAR_LOGO= https://www.mysite.com/mylogo.png
NEXT_PUBLIC_DARK_MODE= true
NEXT_PUBLIC_PRIMARY_COLOR= red

Set metadata
NEXT_PUBLIC_META_TITLE = My Market
NEXT_PUBLIC_META_DESCRIPTION = My Market is a community marketplace built with Reservoir.

Once you have added all your environment variables, navigate to the Deployments tab and select Redeploy from the action menu.

👍

Congratulations! You've just deployed your own marketplace.

Check out even more configuration options here.


Did this page help you?