Skip to content

Demo of multi-container CI/CD pipeline using React.js, Node.js, Docker, Kubernetes, NGINX, Travis CI, & AWS

License

Notifications You must be signed in to change notification settings

adamdubey/fibonacci-calculator

Repository files navigation

fibonacci-calculator

app-demo

Adventures with Docker and K8s! By default, this project is wired up to leverage Docker for container creation, however there are configuration files available to use Kubernetes instead for development and deployment.

Getting Started

To run the entire stack locally via Docker:

$ docker-compose up

and then visit localhost:3000 in your browser of choice.

Overview

Front-End: React.js App

A user will interact with the web app. For example, when a user submits a number to be processed, then the Front-End app will communicate with the backend (Node.js) server.


Back-End: Node.js Server

This Back-End Server performs a number of operations, primarily functioning as an API for the two databases.


Redis Database

The Redis DB is an in-memory store, which is storing all indices and calculated values, and then returning those values as key-value pairs to the Node.js server (and ultimately back to the React app for the user to see).


PostgreSQL Database

This DB stores a permanent list of indices that has been received.


Worker Node

This worker node watches the Redis DB instance for any new indices. Whenever it sees a new indice, it will pull the indice, calculate the new value, and then return that value to Redis.

Frameworks & Technologies

About

Demo of multi-container CI/CD pipeline using React.js, Node.js, Docker, Kubernetes, NGINX, Travis CI, & AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published