Skip to content
Branch: master
Find file History
renovate-bot and bajtos chore: update dependency eslint-config-prettier to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Latest commit 123384c Jun 17, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.vscode feat: replace tslint with eslint Jun 3, 2019
src feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
.npmrc feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
.prettierignore feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
.prettierrc feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
CHANGELOG.md chore: publish release Jun 6, 2019
LICENSE feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
README.md feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
greeting-app.png feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
index.d.ts feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
index.js feat(example-greeting-app): add a new example to demonstrate loopback… May 30, 2019
index.ts
package-lock.json chore: update dependency eslint-config-prettier to v5 Jun 17, 2019
package.json chore: update dependency eslint-config-prettier to v5 Jun 17, 2019
tsconfig.build.json chore: specify "outDir" in per-package tsconfig file Jun 10, 2019

README.md

@loopback/example-greeting-app

This application is built on top of @loopback/example-greeter-extension.

Compose the application

  1. Add REST API

    • GreetingController - providing endpoints over GreetingService
  2. Add caching

    • CachingService - implementing cache operations, such as set,get, delete, and sweep
    • CachingInterceptor - intercepting http requests to apply caching
    • CacheObserver - watching and sweeping cache in the background

greeting-app

Contributions

Try out

Run npm start:

The service is running at http://127.0.0.1:3000/greet/world.

Open your browser to try the REST APIs. You can replace world with other names.

The following curl command sets Accept-Language header to zh to receive the greeting in Chinese.

curl -H 'Accept-Language: zh' http://127.0.0.1:3000/greet/Ray
{
  "timestamp": "2019-05-29T22:48:03.040Z",
  "language": "zh",
  "greeting": "Ray,你好!"
}

Tests

Run npm test from the root folder.

Contributors

See all contributors.

License

MIT

You can’t perform that action at this time.