No-code Solana NFT marketplaces powered by Holaplex.
Tech Stack:
- Typescript
- Apollo GraphQL
- React
Clone the repo, cd
into the folder.
You can change the GraphQL endpoint for your own self-hosted one repo available here.
In this case, we are using our dev
GraphQL.
Start the node server in dev mode.
$ npm install
$ NEXT_PUBLIC_GRAPHQL_ENDPOINT=https://graph-test.holaplex.com/v0 PORT=3000 npx next dev
The active marketplace can be set by the x-holaplex-subdomain
request header. Starting the nginx
with default.conf will set the subdomain header based on the current hostname context of the request.
The nginx conf relies on envstub provided by the official nginx image on Dockerhub.
To start nginx using the required configuration, use the following command:
$ docker run --network=host -v $(pwd)/templates:/etc/nginx/templates \
-e HOSTNAME=dev.holaplex.market.127.0.0.1.nip.io -e PORT=80 -e WEB_PORT=3000 \
-e PROXY_HOST=127.0.0.1.nip.io nginx:latest
If you already have something running in port 80
already, feel free to change that to a different port. Keep in mind that you'll need to append :<port>
on the url to access the NGINX server.
Open a test marketplace, like espi's marketplace. Page should load without issues.