mirror of
https://github.com/zhigang1992/connect.git
synced 2026-01-12 22:46:28 +08:00
test-app@2.0.2
- @stacks/app@2.0.2 - @stacks/connect-react@3.0.2 - @stacks/connect-ui@3.0.2 - @stacks/connect@5.0.2 - @stacks/rpc-client@1.0.2 - test-app@2.0.2
Blockstack UX Team Monorepo
This monorepo contains a few key packages that the User Experience team at Blockstack maintains:
app: An application for authenticating into Blockstack apps. Available as a web app and a browser extension.@stacks/connect: A developer tool for building excellent user experiences in Blockstack apps@stacks/connect-react: A library for using@stacks/connectin React apps@stacks/connect-ui: WebComponent-based UI for displaying an intro modal in Stacks Apps during authentication.test-app: A simple React app for testing out Connect and the App.
Development environment setup
The first time you setup a development environment for this repository, follow these steps:
git clone https://github.com/blockstack/ux
cd ux
yarn
yarn bootstrap
- Clone this package.
- Run
yarnto install dependencies - Run
yarn bootstrapto link dependencies within this repository
Running the apps locally
In the command line, run yarn dev which will run two apps:
packages/test-appwhich runs at localhost:3000 and implements an example of connectpackages/appwhich is the auth app, running at localhost:8080
For development instructions of specific packages, see the README in each package folder.
Building browser extensions
- From the root of this repository, in the command line, run
sh build-ext.sh - The extension will be packaged as
stacks-wallet-chromium.zipinside this folder.
Optional - Build browser extensions using Docker
-
Build the docker image locally:
docker build . -t ux -
Copy the built extensions to your local machine:
docker run -d --name ux ux && docker cp ux:stacks-wallet-chromium.zip . && docker rm -f ux
Install browser extension from source
First, unzip the stacks-wallet-chromium.zip file that was generated in the previous step.
If installing for Chrome or Brave:
- Go to: chrome://extensions
- Toggle: "developer mode" on.
- Click on: "Load unpacked"
- Select the new folder that was unzipped from
stacks-wallet-chromium.zip.
If installing for Firefox:
- Go to: about:debugging
- Click on "This Firefox"
- Click on: "Load Temporary Add-on…"
- Inside the new folder that was unzipped from
stacks-wallet-chromium.zip, select themanifest.jsonfile.
Languages
TypeScript
81%
JavaScript
10.9%
SCSS
7.2%
HTML
0.9%