Basic Node.js icon

Basic Node.js

by Red Hat
sample

Node.js 16 application using Express 4.18.x

Details
Project type
Node.js
Language
JavaScript
Devfile
schemaVersion: 2.2.0
metadata:
  name: nodejs
  version: 3.0.0
  displayName: Node.js Runtime
  description: Stack with Node.js 18
  tags: ["Node.js", "Express", "ubi8"]
  projectType: "Node.js"
  language: "JavaScript"
  attributes:
    alpha.dockerimage-port: 3001
  provider: Red Hat
  supportUrl: https://github.com/devfile-samples/devfile-support#support-information
parent:
  id: nodejs
  registryUrl: "https://registry.devfile.io"
components:
  - name: image-build
    image:
      imageName: nodejs-image:latest
      dockerfile:
        uri: Dockerfile
        buildContext: .
        rootRequired: false
  - name: kubernetes-deploy
    attributes:
      deployment/replicas: 1
      deployment/cpuRequest: 10m
      deployment/memoryRequest: 50Mi
      deployment/container-port: 3001
    kubernetes:
      uri: deploy.yaml
      endpoints:
        - name: http-3001
          targetPort: 3001
          path: /
          secure: true
commands:
  - id: build-image
    apply:
      component: image-build
  - id: deployk8s
    apply:
      component: kubernetes-deploy
  - id: deploy
    composite:
      commands:
        - build-image
        - deployk8s
      group:
        kind: deploy
        isDefault: true