https://github.com/kadel/devfile-nodejs-deploy
Example nodejs application with Devfile highlighting use of `odo deploy` command.
https://github.com/kadel/devfile-nodejs-deploy
example
Last synced: 5 months ago
JSON representation
Example nodejs application with Devfile highlighting use of `odo deploy` command.
- Host: GitHub
- URL: https://github.com/kadel/devfile-nodejs-deploy
- Owner: kadel
- License: epl-2.0
- Created: 2021-12-14T13:26:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-24T16:33:15.000Z (almost 4 years ago)
- Last Synced: 2025-02-14T14:31:14.408Z (12 months ago)
- Topics: example
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodejs-starter
This is a sample starter project that provides you with a basic Express app and a sample test in a `/test` sub directory. This sample project uses `Express v4.17.x` and enables health checking and application metrics out of the box. You can override or enhance the following endpoints by configuring your own health checks in your application.
## Health checking
Health-checking enables the cloud platform to determine the `readiness` and `liveness` of your application.
These endpoints will be available for you to use:
- Readiness endpoint: http://localhost:3000/ready
- Liveness endpoint: http://localhost:3000/live
## Application metrics
The [prom-client](https://www.npmjs.com/package/prom-client) module will collect a wide range of resource-centric (CPU, memory) and application-centric (HTTP request responsiveness) metrics from your application, and then expose them as multi-dimensional time-series data through an application endpoint for Prometheus to scrape and aggregate.
This endpoints will be available for you to use:
- Metrics endpoint: http://localhost:3000/metrics
## License
This stack is licensed under the [EPL 2.0](./LICENSE) license.