Skip to content

Commit

Permalink
add publish npm
Browse files Browse the repository at this point in the history
  • Loading branch information
BEARlogin committed Jan 3, 2023
1 parent a9f77b1 commit 4ea15ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,21 @@ Things you need to use the software and how to install them.

### Installation and usage

## Run CLI with npx

```shell
npx dev-backend-proxy -t https://jsonplaceholder.typicode.com -r https://jsonplaceholder.typicode.com -p 3001
```

## Run with docker or NodeJS

1. Clone repo


2. Copy .env.example to .env
```sh
cp .env.example .env
```

3. Build and run docker-compose or use NodeJS
```sh
docker-compose up -d --build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"@types/yargs": "^17.0.18"
},
"bin": {
"backend-proxy": "./bin/index.js"
"dev-backend-proxy": "./bin/index.js"
}
}

0 comments on commit 4ea15ef

Please sign in to comment.