Express api

Express api using nodejs version 16.x.

Getting started

  • Clone This Repository Using HTTPS
git clone https://github.com/firmanJS/nodejs-kubernetes.git
cd existing_repo

DIAGRAM

diagram

Run Application

running application three methods manually, using docker or via Makefile

  • Manually :
# Install package via npm or yarn
yarn install
  • Via Make :
# Build application
make docker-build

# run application after build
make docker-start

# Stop aplication
CTRL+C 
# then 
make docker-down

# stop application and others service
make docker-stop

# run seed
make docker-seed

Deploy Application

kubectl apply -f deployment

Users dummy

Admin 
username :admin
password: admin

User
username :user
password: user