GitXplorerGitXplorer
e

andrest-tap-node-example

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
54e4bdcb3089f0393d94cf85fa655da27e271549

Add echo endpoint

eelfotografo007 committed 3 years ago
Unverified
7c15398c36ed1d654d738a9c83b47718e0b7c12a

Remove source-image address

eelfotografo007 committed 3 years ago
Unverified
ed4a13f3db9e7a1ec90b07acb01dd14f5b517b8f

Add modification

eelfotografo007 committed 3 years ago
Unverified
1be3601da18732b1b150edfdb374907475770dbb

first commit

eelfotografo007 committed 3 years ago

README

The README file for this repository.

andrest-tap-node-example

This is a starter ExpressJs project, you can run it as a standalone app using npm run server in the root of the project. The server will be listening to request on port 3000, so you can test the server in a browser accessing http://localhost:3000 or via cURL.

Before running the command npm run server you need to run npm install to install the dependencies

Deploying to Kubernetes

NOTE: The provided config/workload.yaml file uses the Git URL for this sample. When you want to modify the source, you must push the code to your own Git repository and then update the spec.source.git information in the config/workload.yaml file.

Deploying to Kubernetes as a TAP workload with Tanzu CLI

When you are done developing your app, you can simply deploy it using:

tanzu apps workload apply -f config/workload.yaml

If you would like deploy the code from your local working directory you can use the following command:

tanzu apps workload create andrest-tap-node-example -f config/workload.yaml \
  --local-path . \
  --source-image prefix/andrest-tap-node-example-source \
  --type web \
  --namespace my-apps

Accessing the app deployed to your cluster

If you don't have curl installed it can be installed using downloads here: https://curl.se/download.html

Determine the URL to use for the accessing the app by running:

tanzu apps workload get andrest-tap-node-example

To access the deployed app open the URL shown in your browser.

This depends on the TAP installation having DNS configured for the Knative ingress.