Skip to content

Commit

Permalink
chore: simplify references to lb4 example command
Browse files Browse the repository at this point in the history
We don't have to duplicate the list of examples with the full output
from `lb4 example` command.
  • Loading branch information
raymondfeng committed May 31, 2019
1 parent 2042693 commit 99f0f3b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 75 deletions.
20 changes: 8 additions & 12 deletions docs/site/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@ LoopBack 4 comes with the following example projects:
You can download the example projects using our CLI tool `lb4`:

```sh
$ lb4 example
? What example would you like to clone? (Use arrow keys)
> todo: Tutorial example on how to build an application with LoopBack 4.
todo-list: Continuation of the todo example using relations in LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
log-extension: An example extension project for LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
soap-calculator: An example on how to integrate SOAP web services.
express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
greeting-app: An example showing how to compose an application from component and controllers, interceptors, and observers.
lb3-application: An example LoopBack 3 application mounted in a LoopBack 4 project.
lb4 example <example-name>
```

For example, the following command downloads the `hello-world` example into
`loopback4-example-hello-world`.

```sh
lb4 example hello-world
```

Please follow the instructions in
Expand Down
12 changes: 1 addition & 11 deletions docs/site/Tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,7 @@ LoopBack 4 comes with the following tutorials:
You can download any of the tutorial projects using our CLI tool `lb4`:

```sh
$ lb4 example
? What example would you like to clone? (Use arrow keys)
> todo: Tutorial example on how to build an application with LoopBack 4.
todo-list: Continuation of the todo example using relations in LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
log-extension: An example extension project for LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
soap-calculator: An example on how to integrate SOAP web services.
express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
lb3-application: An example LoopBack 3 application mounted in a LoopBack 4 project.
lb4 example <tutorial-name>
```

Please follow the instructions in
Expand Down
2 changes: 1 addition & 1 deletion docs/site/deployment/Deploying-to-IBM-Cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ as a basis for the instruction.
You can quickly clone the "todo" example app by running the command:

```sh
$ lb4 example todo
lb4 example todo
```

We will be replacing the default memory-based connector of the app with a
Expand Down
11 changes: 1 addition & 10 deletions docs/site/express-with-lb4-rest-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,7 @@ application, follow these steps:
repository:

```sh
$ lb4 example
? What example would you like to clone? (Use arrow keys)
todo: Tutorial example on how to build an application with LoopBack 4.
todo-list: Continuation of the todo example using relations in LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
log-extension: An example extension project for LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
> express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
lb3-application: An example LoopBack 3 application mounted in a LoopBack 4 project.
lb4 example express-composition
```

2. Switch to the directory.
Expand Down
12 changes: 1 addition & 11 deletions examples/express-composition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,7 @@ application, follow these steps:
repository:

```sh
$ lb4 example
? What example would you like to clone? (Use arrow keys)
todo: Tutorial example on how to build an application with LoopBack 4.
todo-list: Continuation of the todo example using relations in LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
log-extension: An example extension project for LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
soap-calculator: An example on how to integrate SOAP web services.
> express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
lb3-application: An example LoopBack 3 application mounted in a LoopBack 4 project.
lb4 example express-composition
```

2. Jump into the directory and then install the required dependencies:
Expand Down
12 changes: 1 addition & 11 deletions examples/soap-calculator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,7 @@ application, follow these steps:
repository:

```sh
$ lb4 example
? What example would you like to clone? (Use arrow keys)
todo: Tutorial example on how to build an application with LoopBack 4.
todo-list: Continuation of the todo example using relations in LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
log-extension: An example extension project for LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
> soap-calculator: An example on how to integrate SOAP web services.
express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
lb3-application: An example LoopBack 3 application mounted in a LoopBack 4 project.
lb4 example soap-calculator
```

2. Jump into the directory and then install the required dependencies:
Expand Down
11 changes: 1 addition & 10 deletions examples/todo-list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,7 @@ application, follow these steps:
1. Run the `lb4 example` command to select and clone the todo repository:

```sh
$ lb4 example
? What example would you like to clone? (Use arrow keys)
todo: Tutorial example on how to build an application with LoopBack 4.
❯ todo-list: Continuation of the todo example using relations in LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
log-extension: An example extension project for LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
lb3-application: An example LoopBack 3 application mounted in a LoopBack 4 project.
lb4 example todo-list
```

2. Switch to the directory.
Expand Down
10 changes: 1 addition & 9 deletions examples/todo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,7 @@ application, follow these steps:
1. Run the `lb4 example` command to select and clone the todo repository:

```sh
$ lb4 example
? What example would you like to clone? (Use arrow keys)
> todo: Tutorial example on how to build an application with LoopBack 4.
todo-list: Continuation of the todo example using relations in LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
log-extension: An example extension project for LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
lb4 example todo
```

2. Switch to the directory.
Expand Down

0 comments on commit 99f0f3b

Please sign in to comment.