# Marketplaces

Marketplaces are custom decentralized frontends for NFT communities.

![](/files/0VWqUO47ARZB7QI7zdkG)

## Get the code

From <https://github.com/airswap/airswap-marketplace>...

* Option 1: Clone the repository
* Option 2: [Download a zip file](https://github.com/airswap/airswap-marketplace/releases/)

## Set up environment

Environment variables are required to be set.

* `REACT_APP_CHAIN_ID` — the chain ID the app will run on
* `REACT_APP_COLLECTION_NAME` — a collection name to include on the app
* `REACT_APP_COLLECTION_IMAGE` — a collection cover image to include on the app
* `REACT_APP_COLLECTION_TOKEN` — the ERC721 token address for the collection
* `REACT_APP_CURRENCY_TOKEN` — the ERC20 token address to use as currency
* `REACT_APP_STORAGE_SERVER_URL` — \[optional] a server URL to use for listing storage
* `REACT_APP_RPC_URL_X` — \[optional] a server URL to fetch on-chain data where X is chain ID
* `REACT_APP_WALLET_CONNECT_PROJECT_ID` — \[optional] project ID to support wallet connect

## Deploy your app

* GitHub Pages — Free static site hosting on GitHub. If you fork or otherwise copy the Marketplace codebase into your own repository you can set up deploys to Pages with [the following guide](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site).
* Other — The build generates static assets that can be easily published to any hosting service.

## Contributions

AirSwap is an open-source development community. If you would like to bugfix, improve, or otherwise contribute to the Marketplace codebase, please see the [repository on GitHub](https://github.com/airswap/airswap-marketplace).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://about.airswap.xyz/technology/marketplaces.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
