Is a "hello world" application written on TypeScript, it shows the Shipwright's logo (./assets/images/shipwright-logo.png) in a simple page.
To build the application run the following commands:
npm install
npm run buildNow you are ready to run the application from your workstation with:
npm run startTest the application endpoint with curl:
curl 127.0.0.1:8080The Buildpack settings for this project are the project.toml file. You can use pack to build a container image locally:
pack build --builder="paketobuildpacks/builder:base" \
ghcr.io/otaviof/typescript-ex:latestWhen pack build done, you can use docker to run the container image:
docker run --name=typescript-ex --rm --publish="8080:8080" \
ghcr.io/otaviof/typescript-ex:latestTest the endpoint with curl again:
curl 127.0.0.1:8080At the end, stop the container:
docker kill typescript-exThe resource to run continuous-integration jobs are documented on the ci/tekton directory.