seeker815 / coding_challenge_devops

Portchain application for devops coding challenge.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This nodeJS application is a simple webserver to support portchain's coding challenge for the role of Devops.

User interface of the web application

Architecture

The web server is a single process nodeJS application that exposes a HTTP and websocket endpoint. The web interface provides a real time view into the node process by exposing its memory and CPU usage as well as its uptime.

  • A nodeJS application (Tested with NodeJS version 12 and 14)
  • Listens to port 3000 by default but can be configured through the PORT environment variable
  • Single process, no need to run multiple nodes

Key data points

  • The webserver serves 2 protocols on the same port: HTTP and WebSocket.
  • The port used by the webserver is 3000 by default but that can be changed with the PORT environment variable.
  • The application logs the number of clients that are connected and the data points displayed in the UI.

Environment variables

  • PORT the port number to which the
  • NODE_ENV set it to production when deployed

About

Portchain application for devops coding challenge.


Languages

Language:HTML 39.9%Language:TypeScript 32.9%Language:JavaScript 18.2%Language:CSS 9.0%