Skip to content

This is simple web application for testing in Docker, Kubernetes, etc.

Notifications You must be signed in to change notification settings

polarsquad/hello-world-app

Repository files navigation

Hello World App

This is simple web application for testing in Docker, Kubernetes, etc.

screenshot

Features

  • "Think" - Causes the application to use 100% of CPU for a moment to simulate computation
  • "Pump up" - Causes the application to slowly eat a lot of memory to simulate memory leak
  • "Suicide" - Causes the application to crash to test recovery

Development

Run in Docker

docker build -t polarsquad:hello-world-app .
docker run -it --rm -p 3000:3000 polarsquad:hello-world-app

Open http://localhost:3000

Run with Docker Compose

docker-compose up

Open http://localhost:3000

Run locally

Prerequisites

  1. Install NodeJS (check version from .nvmrc)
  2. Install dependencies (npm install)
npm start

Run with Redis

docker-compose up -d redis

REDIS_URL=redis://localhost npm start

Open http://localhost:3000

About

This is simple web application for testing in Docker, Kubernetes, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •