Skip to content

kayla-henrie/poap-gallery

 
 

Repository files navigation

POAP gallery

Mainnet

deploy contact: 0x22C1f6050E56d2876009903609a2cC3fEf83B415

Ropsen Testnet

deploy contract: 0x50C5CA3e7f5566dA3Aa64eC687D283fdBEC2A2F2

How to setup

git clone https://github.com/poap-xyz/poap-gallery.git
cd
yarn
cp .env.template .env // Add your own REACT_APP_RPC_PROVIDER_URL

How to run with functions localy

Link to configuration of Netlify

Files to change before to start running locally

netlify.toml

From this

[[redirects]]
  from = "/event/*"
  to = "https://gallery-prerender.netlify.app/.netlify/functions/render/:route"
  status = 200
  force = true

To this

[[redirects]]
  from = "/event/*"
  to = "/.netlify/functions/render/:route"
  status = 200
  force = true

render.js

From this

const eventId = req.baseUrl.split('/')[2];

To this

const eventId = req.baseUrl.split('/')[4]

Commands to run

npm install netlify-cli -g
netlify init
netlify dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.1%
  • SCSS 44.3%
  • HTML 1.1%
  • CSS 0.5%