onyb / swap

Brave Swap monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brave Swap

npm version build

An open-source swap interface by Brave, focussed on usability and multi-chain support.

Project structure

├── interface
│
├── sites
│   ├── mock
│   ├── bravedotcom

The project consists of three top-level directories:

  1. interface ⮕ library implementing the UI, and swap hooks.
  2. sites ⮕ full-blown applications that use the interface library.

Development

Since interface is a library, it cannot be run as a standalone application. We have therefore created a sites/mock application that can be used for local development. Please follow these instructions to setup a development environment with hot reloading.

$ cd swap/interface
$ npm install
$ npm run dev

In another tab:

$ cd swap/sites/mock
$ npm install
$ npm start

About

Brave Swap monorepo

License:Mozilla Public License 2.0


Languages

Language:TypeScript 94.8%Language:CSS 4.9%Language:JavaScript 0.2%Language:HTML 0.1%