Skip to content

Commit

Permalink
Merge pull request #499 from Zack921/master
Browse files Browse the repository at this point in the history
docs(https-demo): improve README
  • Loading branch information
Zack921 authored Jul 5, 2021
2 parents 85d29ed + 06ba480 commit 44d0327
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/https/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
## How to run demo

### 1. Install Npm
### 1. Generate a self-signed certificate (key.pem and cert.pem)
```bash
openssl genrsa -out key.pem
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
rm csr.pem
```

### 2. Install Npm
```bash
yarn
// npm i
```

### 2. Start the server
### 3. Start the server
```
npm run serve
```

0 comments on commit 44d0327

Please sign in to comment.