Skip to content

manit77/node-webserver

Repository files navigation

node-webserver

Example NodeJS with Express webserver configured with cors and a public file directory. Show cases various technologies for automated builds and deployment.

Technologies used:

  1. GitLab yaml config for CI/CD
  2. Shell scripting for building TypeScript projects
  3. Go script for reading config files, building docker images, publishing to a docker registry, deploying to docker swarm
  4. Docker to build images, and push to container registry
  5. Docker Swarm to host the NodeJS app

Description:

The .gitlab-ci.yml file is a configuration file used by GitLab CI/CD pipelines. Here are the build steps:

  1. GitLab runner will pull down the source
  2. install the node packages
  3. build the TypeScript app
  4. execute the build.go file
  5. buildconfig-prod.json will be parsed
  6. build Docker image
  7. publish Docker image to a private docker registry
  8. deploy Docker image to Docker Swarm, with mapped ports and volumes
  9. verify the application is running
  10. check the running app version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published