-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
833 additions
and
855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
build/ | ||
public/ | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,33 @@ | ||
# Knative Showcase for JS | ||
|
||
## TODO | ||
This project uses Express.JS framework to showcase the Knative features. | ||
|
||
### Required | ||
## Prerequisites | ||
|
||
* [x] `/` | ||
This application requires the React frontend application webjar to be built and | ||
deployed to a local maven repository. To do it, run the following command from | ||
the root of the project: | ||
|
||
```bash | ||
http :8080 | ||
http options :8080 | ||
http :8080 user-agent:Mozilla/5.0 | ||
``` | ||
```shell | ||
make frontend | ||
``` | ||
|
||
* [x] `/hello` | ||
## Running the application in dev mode | ||
|
||
```bash | ||
http :8080/hello | ||
``` | ||
You can run your application in dev mode that enables live coding using: | ||
|
||
* [x] cloudevents | ||
```shell | ||
npm run dev | ||
``` | ||
|
||
```bash | ||
http :8080/hello | ||
``` | ||
## Packaging and running the application | ||
|
||
* [x] `DELAY` parameter (in msec) for `/hello` | ||
* [x] Containerfile to build as Knative app | ||
The application can be packaged as OCI image using: | ||
|
||
### Nice to have | ||
```shell | ||
npm run build | ||
``` | ||
|
||
* [x] readyness and liveness probes | ||
## Learning | ||
|
||
```bash | ||
http :8080/health/ready | ||
http :8080/health/live | ||
``` | ||
|
||
* [x] Prometeus metrics | ||
|
||
```bash | ||
http :8080/metrics | ||
``` | ||
|
||
* [x] OpenAPI & Swagger UI | ||
|
||
```bash | ||
http :8080/openapi.json | ||
http :8080/swagger-ui | ||
``` | ||
* [x] Input validation (validation by OpenAPI schema) | ||
* [ ] OpenTracing & OpenTelemetry & Distributed Tracing | ||
If you want to learn more about Express.JS, please visit its website: https://expressjs.com/. |
Oops, something went wrong.