Skip to content

dabit3/full-stack-warp-arweave

Repository files navigation

Full stack development with Arweave, Warp, and Next.js

Full stack development with Arweave, Warp, and Next.js

This is an example of how to build a full stack application on Arweave with smart contracts running on Smarweave via Warp Protocol

Getting started

Prerequisites

To run this app, you should have:

  • Node.js installed on your machine
  • ArConnect wallet extension

Deploying and testing on mainnet

  • Retreive Arweave tokens (available from the faucet here or from an exchange)
  • Install ArConnect wallet
  • Download and save wallet in a file named wallet.json

Running this project

To run the app, follow these steps:

  1. Clone the project
git clone git@github.com:dabit3/full-stack-warp-arweave.git
  1. Change into the directory and install the dependencies
cd full-stack-warp-arweave

npm install

# or

yarn
  1. Deploy the contract to testnet

From the warp directory, run the following command:

node deploy
  1. Run the Next.js app

From the root directory, run the following command:

npm run dev

Running on mainnet

  1. Set local environment variable to mainnet in the terminal session you will be deploying from:
export WARPENV=mainnet
  1. Create .env.local file in the root of the app and add the following environment variable:
NEXT_PUBLIC_WARPENV=mainnet
  1. Deploy the contract to testnet

From the warp directory, run the following command:

node deploy
  1. Run the Next.js app

From the root directory, run the following command:

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published