/duro-dogs-dancing-2

A simple sample react next app that integrates with Asset Layer.

Primary LanguageJavaScriptMIT LicenseMIT

Quick Start

npm run create-env

That command will create a .env that looks like this:

ENVIRONMENT = "local"
URL = "http://localhost:3000"
DOG_COLLECTION_ID = "638665d8506da1c31926beef"
ASSETLAYER_URL = "https://api.assetlayer.com/api/v1"
ASSETLAYER_APP_SECRET = "<asset-layer-app-secret>"
HANDCASH_APP_ID = "<handcash-app-id>"
HANDCASH_APP_SECRET = "<handcash-app-secret>"
NEXTAUTH_SECRET="<nextauth-secret>"
ENCRYPTION_SECRET="<encr-secret">
  • Next add your ASSETLAYER_APP_SECRET, HANDCASH_APP_ID & HANDCASH_APP_SECRET to your .env file. You obtain these values in the handcash & assetlayer dashboards.

  • Install dependencies: npm install or yarn

  • Start the server: npm run dev or yarn dev

  • Views are on: localhost:3000

File Structure

Within the download you'll find the following directories and files:

nft-sample-app

┌── .env.example
├── .eslintrc.json
├── .gitignore
├── CHANGELOG.md
├── LICENSE.md
├── next.config.js
├── package.json
├── README.md
├── public
└── src
	├── __mocks__
	├── components
	├── icons
	├── lib
	├── theme
	├── utils
	└── pages
		├── 404.js
		├── _app.js
		├── _document.js
		├── index.js
		├── register.js

Set Up the Proxy Server

  • here's how to set up the proxy if you are not using a NEXT client + API routes
  • need to open source our proxy sample

License

  • Licensed under MIT

Contact Us