Skip to content

Commit

Permalink
docs(examples): move example dependencies from root
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Apr 27, 2024
1 parent f424cef commit 2ae5ed0
Show file tree
Hide file tree
Showing 5 changed files with 1,324 additions and 488 deletions.
30 changes: 17 additions & 13 deletions examples/README.md
Expand Up @@ -4,29 +4,33 @@ View working examples of `http-proxy-middleware` implemented in popular servers.

To run and view the [examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples); Clone the `http-proxy-middleware` repo and install the dependencies:

```bash
$ git clone https://github.com/chimurai/http-proxy-middleware.git
$ cd http-proxy-middleware
$ yarn
$ yarn build
## Install

```shell
# git clone https://github.com/chimurai/http-proxy-middleware.git

yarn install:all
yarn build
```

## Run examples

Run the example from root folder:

```bash
$ node examples/browser-sync
```shell
node examples/browser-sync
```

```bash
$ node examples/connect
```shell
node examples/connect
```

```bash
$ node examples/express
```shell
node examples/express
```

```bash
$ node examples/websocket
```shell
node examples/websocket
```

## Server recipes
Expand Down
17 changes: 17 additions & 0 deletions examples/package.json
@@ -0,0 +1,17 @@
{
"name": "examples",
"version": "1.0.0",
"private": "true",
"description": "View working examples of `http-proxy-middleware` implemented in popular servers.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "chimurai",
"license": "MIT",
"devDependencies": {
"browser-sync": "3.0.2",
"connect": "3.7.0",
"express": "4.19.2"
}
}

0 comments on commit 2ae5ed0

Please sign in to comment.