Skip to content

feat: Add devfile with Node.js web app and MongoDB components #602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

svor
Copy link
Collaborator

@svor svor commented Apr 24, 2025

Description of Changes

In the registry I don't see any stack that provides a component with data base. So, this pull request introduces a devfile with two components:

Node.js Application: A component to develop and run a simple Node.js web application.

Mongo Database: A component to run MongoDB, which the Node.js app will connect to for data storage.

The project sample also includes the necessary deployment configurations, enabling the easy deployment of both the Node.js app and MongoDB to a K8S cluster.

This setup will allow developers to quickly start working on a full-stack application with a working MongoDB instance, all within a K8S environment. The configurations and components are designed to streamline development and deployment in K8S.

Related Issue(s)

eclipse-che/che#23351

Acceptance Criteria

  • Contributing guide

Have you read the devfile registry contributing guide and followed its instructions?

  • Test automation

Does this repository's tests pass with your changes?

  • Documentation

Does any documentation need to be updated with your changes?

  • Check Tools Provider

Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)

Tests Performed

Tested with Eclipse Che:

  • Started a workspace
  • Build and run the application
  • Check that the data is stored in DB
    screenshot-raw_githubusercontent_com-2025_04_24-16_33_21

screenshot-mail_google_com-2025_04_24-13_57_30

How To Test

Create a workspace on workspaces.openshift.com by clicking this button:
Open

Execute Run the application command

@svor svor self-assigned this Apr 24, 2025
@svor svor requested a review from a team as a code owner April 24, 2025 14:21
Copy link

openshift-ci bot commented Apr 24, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: svor
Once this PR has been reviewed and has the lgtm label, please assign elsony for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant