Skip to content

Commit

Permalink
chore: update docments, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdesu committed May 31, 2020
1 parent df4c2e2 commit 531f616
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ NODE_ENV=development
BASE_URL=http://127.0.0.1:8081
HOST=127.0.0.1
PORT=8081

# URL of your Web Auth Server backend
BACKEND_URL=https://public_domain_to_8080.com

# URL of your Dapp which using Web Auth SDK
DAPP_URL=http://127.0.0.1:8082

# RPC Node of CKB
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ First you need to set up and start the [Web Auth Server] service, and then you n

We used [dotenv](https://github.com/motdotla/dotenv) to manage the environment variables, do not forget to copy and rename the `.env.example` in the project directory to `.env` and configure it as needed.

Note that `DAPP_URL` must be configured as the URL of the Dapp you are using with the Web Auth SDK, `BACKEND_URL` must be configured as the URL of the Web Auth Server service you are runing.

### Launch Development Mode

Expand Down
2 changes: 2 additions & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Web Auth Page 是 Web Auth 框架的前端,必须配合 [Web Auth Server] 一

你可以通过任何熟悉的方式来配置环境变量,比如 CI 和 [PM2] 都有自己的环境变量配置方式,除此以外可以使用 [dotenv](https://github.com/motdotla/dotenv) 进行配置。将项目目录下的 `.env.example` 复制粘贴并重命名为 `.env` ,然后按需配置即可。

需要注意的是 `DAPP_URL` 必须配置为你使用 [Web Auth SDK] 的 Dapp 所在 URL,`BACKEND_URL` 必须配置为你搭建的 [Web Auth Server] 服务所在的 URL 。

### 启动服务

```shell
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web_auth_page",
"version": "0.0.1",
"version": "0.1.0",
"description": "blockabc_web_template",
"author": "Link <xie.al@qq.com>",
"license": "MIT",
Expand All @@ -15,7 +15,6 @@
"main": "index.js",
"scripts": {
"dev": "nuxt",
"dev:dapp": "webpack-dev-server --mode=development --config example/webpack.conf.js",
"prebuild": "npm run i18n",
"build": "nuxt build",
"build:analyze": "nuxt build --analyze",
Expand Down

0 comments on commit 531f616

Please sign in to comment.