Skip to content

noramp/noramp-near-demo

Repository files navigation

NoRamp demo app

Getting Started

Install dependencies:

npm install
# or
yarn install

Run the development server:

npm run dev
# or
yarn dev

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

Deploy on Vercel

Once you have the project running locally you can import your project to Vercel and get it up and running in a few clicks.

Other option is to click on the button below to create a new repository that look exactly like this one, and sets it up and running on Vercel.

Deploy to Vercel

Check out Next.js deployment documentation for more details.

Setup env variables

To setup env variables on vercel you can folllow this guide: https://vercel.com/docs/concepts/projects/environment-variables

Setup the following variables

NEXT_PUBLIC_APP_URL=http://localhost:3000

Your app url

NORAMP_API_URL=https://api-testnet.noramp.io

NoRamp API URL (use https://api.noramp.io for production)

NORAMP_API_KEY={YOUR_API_KEY}

Copy from https://testnet.noramp.io/settings/api-key

NEXT_PUBLIC_NORAMP_APP_ID={YOUR_APP_ID}

Copy from https://testnet.noramp.io/apps/dashboard

NEXT_PUBLIC_NORAMP_TRIGGER_ID={YOUR_TRIGGER_ID}

Create and copy the id from https://testnet.noramp.io/apps/triggers

NEXT_PUBLIC_NORAMP_URL=https://testnet.noramp.io

NoRamp URL (use https://app.noramp.io for production)