This is an example node.js http-server using the sequalize ORM.
There's a couple of kubernetes deployment files too.
Aim is to learn how these technologies interact, specifically to demo scaling
and resiliency in a kubernetes cluster, at both app and db layer.
At the moment requests to '/' insert database rows to a user table, then
read them back out. Rows are deleted when the row-count goes above 50 entries.
A database install - configure environemt settings below.
docker pull nabadger/nodejs-app
Database connection details
Database info. needs to be supplied via the environment.
- name: DB_HOST
- name: DB_PORT
- name: DB_NAME
- name: DB_USER
- name: DB_PASSWD