Git Product home page Git Product logo

poap-gallery's Introduction

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

poap-gallery's People

Contributors

agustinignaciovazquez avatar alavarello avatar cristianperez06 avatar guidoalp avatar jamescarnley avatar makoto avatar nicolasdeleon avatar pablojp avatar qu0b avatar ragonzal avatar rlajous avatar sami-reinoso avatar sebasfavaron avatar smanganaro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.