Giter Club home page Giter Club logo

simplenodeservice's Introduction

Sample application Simplenodeservice

This sample app is a modified version of the Node.js sample app from the AWS Elastic Beanstalk Tutorial

I mainly use it to demonstrate continuous delivery, automated quality gates and self-healing of the Open Source project Keptn as well as the monitoring capabilities of Dynatrace

Extended Feature Set

I've modified and extended it with a couple of additional API calls such as:

  • echo a string
  • invoke a server-side URL and return the byte size
  • "login" with a username
  • get the currently running version

4 Builds with different behavior

I've also built-in an option to slow down server-side code execution or to simulate failed requests. The app also comes with 4 built-in "build number" behaviors - meaning - if you launch the app and tell it to run as Build 1, 2, 3 or 4 it shows slightly different behavior. You can also launch the application in Production or Non-Production Mode:

Build Behavior
1 Everything good
2 50% Failure Rate of /api/invoke
3 Everything good
4 20% Failure Rate of /api/invoke and twice as slow when running in production mode

Every build shows the build number and has its own color:

How to run it

There are different options on how to run / deploy that app

Run where How
Local npm start
Docker docker run grabnerandi/simplenodeservice:1.0.0
k8s https://github.com/grabnerandi/keptn-qualitygate-examples

Build it yourself

You can build the app yourself and also use the buildpush.sh for building the container and pushing it to your own container registry!

simplenodeservice's People

Contributors

grabnerandi avatar bacherfl avatar

simplenodeservice's Issues

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.