Skip to content

Commit 316416f

Browse files
committed
update frontend docs
1 parent fc7910d commit 316416f

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

btc-docs/how-to-integrate-a-frontend/how-to-integrate-a-frontend.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cd ..
4242
npx create-react-app frontend --template typescript
4343
```
4444

45-
![](../../static/img/react-scaffold.png)
45+
![](../../static/img/react-scaffold-btc.png)
4646

4747
We will do most work under the `src` directory.
4848

@@ -54,8 +54,6 @@ Run the following command to create a [Next.js](https://nextjs.org/) project.
5454
npx create-next-app frontend --typescript --use-npm
5555
```
5656

57-
![](../../static/img/create-next-app.png)
58-
5957
### Vue.js
6058

6159
#### Vite
@@ -66,16 +64,12 @@ Run the following command to create a [Vue](https://vuejs.org/) 3.x project bund
6664
npm create vue@3
6765
```
6866

69-
![](../../static/img/create-vue3-vite-app.png)
70-
7167
If you'd like to use Vue 2.x, run the following command to initialize the project scaffold.
7268

7369
```bash
7470
npm create vue@2
7571
```
7672

77-
![](../../static/img/create-vue2-vite-app.png)
78-
7973
#### Webpack
8074

8175
Run the following command to create a [Vue](https://vuejs.org/) project bundled with [Webpack](https://webpack.js.org/).
@@ -90,10 +84,6 @@ Vue 3.x and 2.x bundled with Webpack are both supported.
9084

9185
When setting up the project, select `Manually select features` and enable TypeScript.
9286

93-
![](../../static/img/vue-cli-1.png)
94-
95-
![](../../static/img/vue-cli-2.png)
96-
9787
### Angular
9888

9989
Run the following command to create an [Angular](https://angular.io/) project.
@@ -102,8 +92,6 @@ Run the following command to create an [Angular](https://angular.io/) project.
10292
npx @angular/cli new frontend
10393
```
10494

105-
![](../../static/img/create-angular-app.png)
106-
10795
### Svelte
10896

10997
Run the following command to create a [Svelte](https://svelte.dev/) project.
@@ -112,8 +100,6 @@ Run the following command to create a [Svelte](https://svelte.dev/) project.
112100
npm create svelte@latest frontend
113101
```
114102

115-
![](../../static/img/create-svelte-app.png)
116-
117103
:::note
118104
Currently, we support front-end frameworks [React](https://react.dev), [Next.js](https://nextjs.org/), [Vue](https://vuejs.org/), [Angular](https://angular.io/), and [Svelte](https://svelte.dev/). We anticipate to add support for other frameworks over time.
119105
:::
@@ -129,6 +115,8 @@ npm install ../helloworld
129115
This command installs the dependencies and configures the contract development environment.
130116
After this, we are ready to go!
131117

118+
![](../../static/img/frontend-dependency.png)
119+
132120
## Integrate Wallet
133121

134122
You will integrate [unisat](https://unisat.io), a browser extension wallet, similar to [MetaMask](https://metamask.io/), into the project.

static/img/frontend-dependency.png

292 KB
Loading

static/img/react-scaffold-btc.png

191 KB
Loading

0 commit comments

Comments
 (0)