Skip to content

BlockscapeNetwork/gravity-bridge-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravity Bridge Workspace

This directory contains the two repositories that make up the open-source Gravity Bridge UI stack:

Repository Roles

Frontend

The frontend is the browser application. It handles:

  • wallet connections
  • bridge UI flows
  • fee and route presentation
  • transaction progress and history display

Main docs:

Backend

The backend provides the API consumed by the frontend. It handles:

  • bridge and chain metadata
  • cached data and transaction-related endpoints
  • database-backed query logic
  • optional scheduled import jobs

Main docs:

Prerequisites

  • Node.js 20
  • Yarn 1.x
  • Docker with Compose support
  • Flutter 3.22.0
  • Chrome

Quick Start

Start the backend first:

cd gravity-bridge-backend
cp .env.example .env
yarn install
yarn dev:up
yarn start:dev

Then start the frontend:

cd ../gravity-bridge-frontend
flutter pub get
./scripts/run-local.sh

Default local URLs:

  • frontend: http://localhost:8080
  • backend: http://localhost:6060

Verification

Frontend:

cd gravity-bridge-frontend
./scripts/verify.sh

Backend:

cd gravity-bridge-backend
yarn verify

Open-Source Baseline

The current publication setup assumes:

  • no runtime secrets are committed
  • local development works with public or locally configured endpoints
  • frontend analytics is disabled by default
  • backend scheduled jobs are disabled by default in local runs
  • both repos have contributor-facing setup, testing, and contribution docs

Notes

  • The frontend verify path includes flutter analyze and the full Chrome test suite.
  • The backend verify path runs lint, tests, and a production build.
  • Browser-wallet flows still need manual validation before release, even when the automated suite is green.
  • To serve built files that are generated by running run-production.sh you could for example use python: cd build/web && python3 -m http.server 8080

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors