{"id":17668601,"url":"https://github.com/evanshortiss/openshift-typescript-example","last_synced_at":"2025-05-08T22:43:32.655Z","repository":{"id":66153961,"uuid":"118566496","full_name":"evanshortiss/openshift-typescript-example","owner":"evanshortiss","description":"A sample TypeScript application that can be deployed on OpenShift","archived":false,"fork":false,"pushed_at":"2021-05-11T15:40:45.000Z","size":48,"stargazers_count":8,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T22:43:25.505Z","etag":null,"topics":["javascript","kubernetes","nodejs","okd","openshift","openshift-io","openshift-origin","ts","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evanshortiss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-23T06:14:34.000Z","updated_at":"2022-02-22T03:31:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"e62e2e10-431b-42f6-95ae-6a197150b5eb","html_url":"https://github.com/evanshortiss/openshift-typescript-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fopenshift-typescript-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fopenshift-typescript-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fopenshift-typescript-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fopenshift-typescript-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanshortiss","download_url":"https://codeload.github.com/evanshortiss/openshift-typescript-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160727,"owners_count":21863624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","kubernetes","nodejs","okd","openshift","openshift-io","openshift-origin","ts","typescript"],"created_at":"2024-10-23T23:23:11.440Z","updated_at":"2025-05-08T22:43:32.634Z","avatar_url":"https://github.com/evanshortiss.png","language":"TypeScript","readme":"# TypeScript Sample Application\n\nThis repository provides a simple starting point for running TypeScript\napplications on OpenShift. It can also be applied to applications that use\nBabel or other transpilers.\n\nA blogpost that runs through the details of this repository and OpenShift can\nbe found [here](http://evanshortiss.com/development/openshift/javascript/typescript/2018/02/15/ts-on-openshift.html).\n\nYou can use this repository as a template, just click the green \"Use this\ntemplate\" button at the top of this page on GitHub.\n\n## Running on OpenShift via NodeShift\nTo use this method of deployment you'll need:\n\n* Node.js v12 or later\n* OpenShift 4.x (Run OpenShift 4.x locally using [CodeReady Containers](https://developers.redhat.com/products/codeready-containers/overview))\n\nNodeShift is a neat CLI that simplifies deployment of Node.js applications on\nOpenShift. This project incldues NodeShift in `devDependencies`.\n\nYou can run the following to deploy it on an OpenShift instance:\n\n```\n$ git clone git@github.com:evanshortiss/openshift-typescript-example.git ts-openshift\n\n$ cd ts-openshift\n\n# Ensure you are logged into your openshift instance\n$ oc login\n\n# Choose the project you'd like to deploy this applicaion into\n$ oc new-project ts-example\n\n# Build, deploy, and expose an endpoint for the service\n$ npm run nodeshift -- --expose\n```\n\nIf you're deploying on a locally running instance of OpenShift you might need\nto do the following to bypass the self-signed certificate issues:\n\n```\n$ npm run nodeshift -- --expose --strictSSL=false\n```\n\n## Run Locally without Docker\nTo run this application locally you'll need:\n\n* Node.js v12 or later\n* npm v6 or later\n* Git\n\nExecute the following commands to start the program locally:\n\n```\ngit clone git@github.com:evanshortiss/openshift-typescript-example.git ts-openshift\n\ncd ts-openshift\n\nnpm instal\nnpm run build\nnpm start\n```\n\nIf you're developing locally, start a live reload server like so:\n\n```\nnpm run start-dev\n```\n\n## Build Locally using Source-to-Image (s2i)\nTo perform the following steps you'll need:\n\n* [Docker](https://docs.docker.com/release-notes/) (v19.x tested)\n* [s2i](https://github.com/openshift/source-to-image/releases) (v1.1.13 tested)\n\nWith both tools installed, execute the following commands to run your\napplication locally. This will create a container that matches the one created\nusing an OpenShift Build.\n\n```bash\n# Run the s2i build script\n./scripts/s2i.sh\n\n# Run the container image\ndocker run -p 8080:8080 quay.io/evanshortiss/openshift-s2i-typescript-example\n```\n\n## Running Local Dev Mode using Docker Compose\nTo perform the following steps you'll need:\n\n* [Docker](https://docs.docker.com/release-notes/) (v19.x tested)\n* [Docker Compose](https://docs.docker.com/compose/install/)\n\nRun the `docker-compose up` command from the root of the repository to start\nNode.js and Redis containers.\n\nThe application will be available on port 8080.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Fopenshift-typescript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanshortiss%2Fopenshift-typescript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Fopenshift-typescript-example/lists"}