Skip to content

knav-eth/runes

Repository files navigation

The Runes Project

This repo is an example of how to build an NFT utilizing the n project.

This project was built by some friends who had an impromptu NFT hackathon after setting out to make a simple tech demo showcasing the n project. We hope this is a useful resource for both the n community and the overall NFT community.

The production version of this site can be found at rvnes.xyz and the collection can be found here.

Web app

Install dependencies

yarn install

Start a local chain

yarn chain

Setup the contracts

With your local chain still running, run: yarn deploy

First, run the development server: yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.tsx.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Deploying to Other Environments

You can run target any network by appending --network <network_name> to any of the previous commands.

For example, to deploy to mainnet you would run: yarn deploy --network mainnet