Coder Social home page Coder Social logo

dydxfoundation / bridge-user-interface Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 4.0 858 KB

token migration

Home Page: https://bridge-rehearsal.vercel.app

License: GNU Affero General Public License v3.0

JavaScript 0.12% HTML 0.19% TypeScript 97.21% CSS 2.48%

bridge-user-interface's Introduction

Prerequisites

  • Node.js version 18 and pnpm installed on your system
  • Alchemy account
  • Wallet Connect account

Part 1: Setting up your local environment

Step 1: Clone the repo

Clone the repository and navigate to its directory:

git clone https://github.com/dydxfoundation/bridge.git
cd bridge

Step 2: Install pnpm and dependencies

Install pnpm and the project dependencies:

npm i -g pnpm
pnpm i

Part 2: Running the project locally

Run the following command in the project directory to start the development server:

pnpm dev

The development server will be running at http://localhost:5173 (or the port number displayed in the terminal). Visit this URL to interact with the web app and see your changes in real-time.

Part 3: Deploying with Vercel

Step 1: Connect your repository to Vercel

Select "Import Git Repository" from your dashboard, and provide the URL of this repository or your forked repository.

Step 2: Configure your project

For the "Build & Development Settings", we recommend the following:

  • Framework Preset: Vite
  • Build Command (override): pnpm run build

For "Environment Variables", configure according to what needs to be overwritten in .env. In particular,

  • VITE_ALCHEMY_API_KEY: Alchemy account API key (docs)
  • VITE_WALLETCONNECT2_PROJECT_ID: Project ID for Wallet Connect. Create a project via their dashboard, and find the project ID.

To configure network (e.g. staging, testnet or mainnet),

  • Update variables starting with VITE_NETWORK_, replace with the indexer and validator hosts of your choosing pointing to the desired network
  • Update the rest of the variables (e.g. token / contract addresses / denom).

For more details, check out Vercel's official documentation.

The primary license for this project is the GNU Affero General Public License v3.0 (AGPL-3.0), see LICENSE.

bridge-user-interface's People

Contributors

aforaleka avatar karandydx avatar

Stargazers

Javed Khan avatar

Watchers

Adam Fraser avatar Dimitar Petkov avatar Bill  avatar david-dydx-foundation avatar  avatar  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.