Skip to content
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
3 changes: 3 additions & 0 deletions .cfignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git/
node_modules/
.DS_Store
15 changes: 5 additions & 10 deletions .github/workflows/greeter-ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: greeter-ci
name: ci

on:
push:
branches: ["main"]
paths: ["greeter/**"]
branches: ['main']
pull_request:
branches: ["main"]
paths: ["greeter/**"]
branches: ['main']

jobs:
check:
Expand All @@ -19,14 +17,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "greeter/package-lock.json"
node-version: '20'
cache: 'npm'

- name: Install dependencies
working-directory: ./greeter
run: npm ci

- name: Check Lint
working-directory: ./greeter
run: npm run check
32 changes: 0 additions & 32 deletions .github/workflows/greeter-messages-ci.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Service Registry nodejs sample

![Greeter CI](https://github.com/spring-cloud-services-samples/greeting-nodejs/actions/workflows/greeter-ci.yml/badge.svg)
![Greeter Messages CI](https://github.com/spring-cloud-services-samples/greeting-nodejs/actions/workflows/greeter-messages-ci.yml/badge.svg)
![CI](https://github.com/spring-cloud-services-samples/greeting-nodejs/actions/workflows/ci.yml/badge.svg)

Sample nodejs application demonstrating the use of Service Registry in Tanzu Platform for Cloud Foundry.

Expand All @@ -15,16 +14,22 @@ For information on the Service Registry product in Tanzu Platform for Cloud Foun
cf create-service p.service-registry standard greeter-service-registry
```

- Install depdenencies

```
npm install && cf push
```

- Push the `greeter-messages` application:

```
cd greeter-messages && npm install && cf push
cd greeter-messages && cf push
```

- Push the `greeter` application:

```
cd greeter && npm install && cf push
cd greeter && cf push
```

## Trying It Out
Expand Down
File renamed without changes.
Loading