Giter VIP home page Giter VIP logo

widget-public's Introduction

Lido Widget

A widget for submitting Ether to the pool.

Development

Prerequisites

  • Node.js v12+
  • Yarn package manager

This project requires an .env file which is distributed via private communication channels. A sample can be found in sample.env.

Development server

To get started, copy .env file to the repo root and install the dependencies:

yarn install

Then, start the development server:

yarn dev

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

Docker build

To build and push an image, run:

yarn docker-build

When starting a container, specify the following environment variables:

  • ACTIVE_CHAIN_ID
  • LIDO_CONTRACT_ADDRESS
  • SUBMIT_GAS_LIMIT

Hosting on IPFS

IPFS does not provide a Node.js server, which is why it can only host a static version of this app.

To export the widget to static HTML, run

yarn build

This command will build the production version of the app as well as run next export, which will output static files into out directory in the root of the project. For more info about static export, see next export docs.

Now to deploy the static website to IPFS, run

npx ipfs-deploy out

It may take a while to upload it to IPFS but if everything goes right, you will be taken to your newly-deployed widget in your browser. For more info, please visit ipfs-deploy github page.

widget-public's People

Contributors

mymphe avatar kozlovzxc avatar vshvsh 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.