davidpinhas / from-git-to-kubernetes

Simple Application Using Basic Express Components and Communication between them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

From Git to Kubernetes

What is the use of this Repo

This project contains a simple Express application with health checks ready for kubernetes deployment using Artifactory Cloud. The project Template can be used to build bigger projects.

Prerequisites

Install Node JS

Refer to https://nodejs.org/en/ to install nodejs

Tesing the Express app locally

  1. Clone the repository
  2. Install the dependencies
  3. Start the application
git clone https://github.com/davidpinhas/from-git-to-kubernetes.git
npm install
node server.js

Dockerizing the appliaction and testing with Docker locally

Clone the repository and build the Docker image:

git clone https://github.com/davidpinhas/from-git-to-kubernetes.git
cd from-git-to-kubernetes/
docker build . -t <ARTIFACTORY_SERVER_NAME>.jfrog.io/docker/pe-node-web-app
docker run -p 8080:8080 -d <ARTIFACTORY_SERVER_NAME>.jfrog.io/docker/pe-node-web-app

The application should be accessible through localhost with the assigned port http://localhost:8080/

About

Simple Application Using Basic Express Components and Communication between them

License:MIT License


Languages

Language:Smarty 56.9%Language:JavaScript 16.9%Language:Dockerfile 14.5%Language:Shell 11.7%