Skip to content

otaviof/typescript-ex

Repository files navigation

typescript-ex

Is a "hello world" application written on TypeScript, it shows the Shipwright's logo (./assets/images/shipwright-logo.png) in a simple page.

Building and Running

To build the application run the following commands:

npm install
npm run build

Now you are ready to run the application from your workstation with:

npm run start

Test the application endpoint with curl:

curl 127.0.0.1:8080

Buildpacks

The 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:latest

When 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:latest

Test the endpoint with curl again:

curl 127.0.0.1:8080

At the end, stop the container:

docker kill typescript-ex

CI

OpenShift Pipelines (Tekton)

The resource to run continuous-integration jobs are documented on the ci/tekton directory.

About

TypeScript example application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages