@slsplus/ui
Version:
UI Tool for Serverless Plus CLI
53 lines (34 loc) • 1.42 kB
Markdown
# Serverless Plus UI
[](http://www.npmtrends.com/@slsplus/ui)
[](http://www.npmtrends.com/@slsplus/ui)
[](https://github.com/serverless-plus/ui/actions?query=workflow:Validate+branch:master)
[](https://github.com/semantic-release/semantic-release)
Serverless Plus UI Tool
## Usage
```bash
$ npm i @slsplus/ui --save
```
```js
import { startServer } from '@slsplus/ui';
startServer();
```
## Async parameter config
Sometimes, we should get parameters(eg: vpc list) list by api, but they are developer's cloud resources, so if you want to config these parameters, `@slsplus/ui` server need authentication. So please config `TENCENT_SECRET_ID` and `TENCENT_SECRET_KEY` in global environment variables.
Of course, if you are using [@slsplus/cli](https://github.com/serverless-plus/cli), you can run `sp config` command to config it.
```bash
$ sp config
? SecretId ******
? SecretKey ******
```
## Development
Install dependencies:
```bash
$ npm run bootstrap
```
Run server and client:
```bash
$ npm run dev
```
## License
MIT License
Copyright (c) 2020 Serverless Plus