Coder Social home page Coder Social logo

gestrem / nodejs-mongodb-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from che-samples/nodejs-mongodb-sample

0.0 0.0 0.0 88 KB

Simple NodeJs web application which communicates with Mongo data base

License: MIT License

Dockerfile 7.97% JavaScript 56.97% CSS 18.49% HTML 16.57%

nodejs-mongodb-sample's Introduction

NodeJS-MongoDB-Sample

A simple NodeJS web application which communicates with MongoDB. Useful for testing Eclipse Che Node workspace.

Deploy it to CodeReady Workspaces with Factory

Contribute

MongoDB

The application connects to the Mongo data base, so it should be configured with next parameters:

  • MongoDB user - user
  • MongoDB password - password
  • The name of data base - guestbook

Deploy the application on Kubernetes cluster by kubectl command-line tool

  • Before you begin you need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. If you do not already have a cluster, you can create one by using Minikube or Minishift
  • Deploy MongoDB: kubectl apply -f ./kubernetes-manifests/mongo.deployment.yaml
  • Deploy guestbook application: kubectl apply -f ./kubernetes-manifests/guestbook-app.deployment.yaml

Deploy the application via Openshift Connector plug-in on Minishift

  • Create and start a workspace from NodeJS MongoDB Web Application stack with OpenShift Connector plug-in
  • Open a terminal from vscode-openshift-connector container
  • Login into your Kubernetes cluster via oc login https://<IP>:<PORT> --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt command
  • Create a new project in Openshift application explorer
  • Create new application in your project in Openshift application explorer
  • Open kubernetes-manifests/mongo.deployment.yaml and deploy it via Kubernetes: Create command
  • Create a new Openshift component from the context menu in project explorer by clicking on nodejs-mongodb-sample root folder

nodejs-mongodb-sample's People

Contributors

svor avatar blues-man avatar gestrem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.