https://github.com/gathecageorge/node-names-application?tab=readme-ov-file#about-app
1.4K
More updated information here https://github.com/gathecageorge/node-names-application?tab=readme-ov-file#about-app
This is a simple node application. It will connect to a database, and show a page with a form to submit data to be saved on the database.
Its indended to just be used for learning load balancing because when you have many instances of this application, whenever a page is shown it will show which server is responding to the request.
i.e Lets say you have 3 instances of the application, like 3 kubernetes pods with a load balancer infront of the instances.

Once opened run node js/server.js
docker-compose -f dbpostgres.yml up -ddocker run --rm -d --add-host=host.docker.internal:host-gateway --name node-app -p 3001:3001 -e DATABASE_PORT=5432 -e APPLICATION_PORT=3001 -e DATABASE_HOST=host.docker.internal -e DATABASE_USER=postgres -e DATABASE_PASSWORD=example -e DATABASE_NAME=nodeNamesApplication gathecageorge/node-names-application:latest
localhost:APPLICATION_PORT to see the applicationContent type
Image
Digest
sha256:17ba057fd…
Size
392.4 MB
Last updated
9 months ago
docker pull gathecageorge/node-names-application