-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
252d565
commit f394a91
Showing
8 changed files
with
53 additions
and
4,376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Frames | ||
|
||
This repository contains code for the recovery and export components of Turnkey. These components can be embedded as iframes by users to support end-users in recovery and export. | ||
This repository contains code for the recovery, export, and auth components of Turnkey. These components can be embedded as iframes by users to support end-users. | ||
|
||
## Email Recovery | ||
This self-contained HTML page is meant to be used as a standalone document to help first-party Turnkey root users. It's also going to be embedded as an iframe to help with sub-org root recovery. | ||
|
@@ -12,6 +12,11 @@ This self-contained HTML page is meant to be used as either a standalone documen | |
|
||
This page is hosted at https://export.turnkey.com/ | ||
|
||
## Auth (via Email) | ||
This self-contained HTML page is meant to be used as either a standalone document or to be embedded as an iframe. | ||
|
||
This page is hosted at https://auth.turnkey.com/ | ||
|
||
# Getting Started | ||
|
||
Clone the repo: | ||
|
@@ -30,14 +35,16 @@ Install dependencies: | |
```sh | ||
cd recovery && npm install | ||
cd export && npm install | ||
cd auth && npm install | ||
``` | ||
|
||
# Unit Testing | ||
|
||
The export and recovery pages have tests. They run on CI automatically. If you want to run them locally: | ||
The export, recovery, and auth pages each have tests. They run on CI automatically. If you want to run them locally: | ||
```sh | ||
cd recovery && npm test | ||
cd export && npm test | ||
cd auth && npm test | ||
``` | ||
|
||
# Running Local Wallet Export | ||
|
@@ -51,21 +58,37 @@ Clone the `sdk` repo. | |
git clone [email protected]:tkhq/sdk.git | ||
``` | ||
|
||
Follow the README.md for the `key-export` example. Set the `NEXT_PUBLIC_EXPORT_IFRAME_URL="http://localhost:3000/export"` in the example's environment variables configuration. The `wallet-export` example embeds this page as an iframe. | ||
Follow the README.md for the `wallet-export` [example](https://github.com/tkhq/sdk/tree/main/examples/wallet-export). Set the `NEXT_PUBLIC_EXPORT_IFRAME_URL="http://localhost:3000/"` in the example's environment variables configuration. The `wallet-export` example embeds this page as an iframe. | ||
```sh | ||
cd sdk/examples/wallet-export | ||
``` | ||
|
||
# Running Local Auth | ||
Start the server. This command will run a simple static server on port 8080. | ||
```sh | ||
npm start | ||
``` | ||
|
||
Clone the `sdk` repo. | ||
```sh | ||
git clone [email protected]:tkhq/sdk.git | ||
``` | ||
|
||
Follow the README.md for the `email-auth` [example](https://github.com/tkhq/sdk/tree/main/examples/email-auth). Set the `NEXT_PUBLIC_AUTH_IFRAME_URL="http://localhost:3000/"` in the example's environment variables configuration. The `email-auth` example embeds this page as an iframe. | ||
```sh | ||
cd sdk/examples/email-auth | ||
``` | ||
|
||
# Building and running in Docker | ||
|
||
To build: | ||
``` | ||
docker build . -t frames | ||
``` | ||
|
||
To run (mapping 8080 and 8081 to 18080/18081 because they're often busy): | ||
To run (mapping `[8080, 8081, 8082]` to `[18080, 18081, 18082]` because they're often busy): | ||
``` | ||
docker run -p18080:8080 -p18081:8081 -t frames | ||
docker run -p18080:8080 -p18081:8081 -p18082:8082 -t frames | ||
``` | ||
|
||
# Deploying to a test Kubernetes cluster | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.