top of page

​安装开发依赖

  • mkdir verixyz-app && cd verixyz-app //创建开发目录

  • yarn init -y 

  • yarn add typescript ts-node --dev //安装ts

  • ​yarn add sqlite 

  • yarn add @verixyz/core @verixyza/credential-w3c ...

       安装verixyz应用的依赖plugins包。​verixyz的plugins包列表

2

​编写tsconfig.json文件

{

"compilerOptions": {

"preserveConstEnums": true,

"strict": true,

"target": "es6",

"rootDir": "./",

"moduleResolution": "node",

"esModuleInterop": true,

"downlevelIteration": true

 }

}

3

​编写setup.ts文件

  • 主要包括:

    • import {模块} from ‘@verixyz/xxx’

    • const dbConnection =    //建立数据库连接

    • export const agent =      //创建agent

4

编写应用程序

  • 主要包括

    • 编写js程序,调用模块

    • 添加scripts到package.json文件

bottom of page