Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix number formatting #1911

Merged
merged 2 commits into from
Oct 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/site/Decorators.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tie into an API.

As a default, LoopBack comes with some pre-defined decorators:

- [Route Decorators](Decorators_route.md)
- [OpenAPI Decorators](Decorators_openapi.md)
- [Dependency Injection Decorator](Decorators_inject.md)
- [Authentication Decorator](Decorators_authenticate.md)
- [Repository Decorators](Decorators_repository.md)
2 changes: 1 addition & 1 deletion docs/site/Decorators_inject.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ injection if possible. Use `@inject.context` only when the code needs to access
the current context object for advanced use cases.

For more information, see the [Dependency Injection](Dependency-Injection.md)
section under [LoopBack Core Concepts](Concepts.md)
section under [LoopBack Core Concepts](Concepts.md).
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
lang: en
title: 'Route Decorators'
title: 'OpenAPI Decorators'
keywords: LoopBack 4.0, LoopBack-Next
sidebar: lb4_sidebar
permalink: /doc/en/lb4/Decorators_route.html
permalink: /doc/en/lb4/Decorators_openapi.html
---

## Route Decorators
Expand Down Expand Up @@ -315,5 +315,5 @@ class MyController {
```

_We plan to support more `@requestBody` shortcuts in the future. You can track
the feature in story_
_(https://github.com/strongloop/loopback-next/issues/1064)_
the feature in
[story 1064](https://github.com/strongloop/loopback-next/issues/1064)._
32 changes: 16 additions & 16 deletions docs/site/Deploying-to-IBM-Cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,29 +146,29 @@ export async function main(options?: ApplicationConfig) {

## Running the app locally

1. Install all dependencies:
1. Install all dependencies:

```sh
$ npm i
```

2. Build the app:
2. Build the app:

```sh
$ npm run build
```

3. Ensure Cloudant is running locally.
4. Start the app:
3. Ensure Cloudant is running locally.
4. Start the app:

```sh
$ npm start
```

5. Go to http://localhost:3000/explorer to load API Explorer and add a todo or
two.
5. Go to http://localhost:3000/explorer to load API Explorer and add a todo or
two.

6. Go to http://localhost:3000/todos to see the todos.
6. Go to http://localhost:3000/todos to see the todos.

## Deploying the app

Expand All @@ -178,9 +178,9 @@ further.
We'll need to create the following Cloud Foundry artifacts to deploy our app to
IBM Cloud:

1. `.cfignore` - not mandatory, prevents `cf` from uploading the listed files
to IBM Cloud.
2. `manifest.yml` - details about the app.
1. `.cfignore` - not mandatory, prevents `cf` from uploading the listed files to
IBM Cloud.
2. `manifest.yml` - details about the app.

Create a file named `.cfignore` in the app directory with the following content.

Expand All @@ -200,20 +200,20 @@ $ cf create-app-manifest mylb4app -p manifest.yml

Now we are ready to deploy the app to IBM Cloud.

1. Build the app locally:
1. Build the app locally:

```sh
npm run build
```

2. Push the app to Cloud Foundry:
2. Push the app to Cloud Foundry:

```
cf push mylb4app
```

3. Go to https://mylb4app.eu-gb.mybluemix.net/explorer to load the API Explorer
and add a todo or two. The host `mylb4app.eu-gb.mybluemix.net` is derived
from the `name` and `domain` values in the `manifest.yml` file.
3. Go to https://mylb4app.eu-gb.mybluemix.net/explorer to load the API Explorer
and add a todo or two. The host `mylb4app.eu-gb.mybluemix.net` is derived
from the `name` and `domain` values in the `manifest.yml` file.

4. Go to https://mylb4app.eu-gb.mybluemix.net/todos to see the todos.
4. Go to https://mylb4app.eu-gb.mybluemix.net/todos to see the todos.
2 changes: 0 additions & 2 deletions docs/site/Model.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ sidebar: lb4_sidebar
permalink: /doc/en/lb4/Model.html
---

{% include content/tbd.html %}

## Overview

A model describes business domain objects, for example, `Customer`, `Address`,
Expand Down
4 changes: 2 additions & 2 deletions docs/site/sidebars/lb4_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ children:
output: 'web, pdf'
children:

- title: 'Route Decorators'
url: Decorators_route.html
- title: 'OpenAPI Decorators'
url: Decorators_openapi.html
output: 'web, pdf'

- title: 'Dependency Injection Decorator'
Expand Down
18 changes: 9 additions & 9 deletions examples/soap-calculator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ Follow the following steps to start buiding your application:
6. [Register the service](https://loopback.io/doc/en/lb4/soap-calculator-tutorial-make-service-available.md)
7. [Run and Test the application](https://loopback.io/doc/en/lb4/soap-calculator-run-and-and-test.md)

## or Try it out
## Try it out

If you'd like to see the final results of this tutorial as an example
application, follow these steps:

### Generate the example using CLI

1.Run the `lb4 example` command to select and clone the soap-calculator
repository:
1. Run the `lb4 example` command to select and clone the soap-calculator
repository:

```sh
$ lb4 example
Expand All @@ -60,19 +60,19 @@ $ lb4 example
> soap-calculator: An example on how to integrate SOAP web services.
```

2.Jump into the directory and then install the required dependencies:
2. Jump into the directory and then install the required dependencies:

```sh
cd loopback4-example-soap-calculator
```

3.Finally, start the application!
3. Finally, start the application!

```sh
$ npm start
```sh
$ npm start

Server is running on port 3000
```
Server is running on port 3000
```

Feel free to look around in the application's code to get a feel for how it
works.
Expand Down