see midway docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7001/
$ npm start
- Use
npm run lint
to check code style. - Use
npm test
to run unit test.
需要在 src/db 下新建 config.ts 文件,内容如下:
export default {
accessKeyId: '', // 阿里云的key
accessKeySecret: '', // 阿里云的Secret
endpoint: '', // 数据库外网地址
instancename: '', // ots实例名
};