Skip to content

For an introductory tutorial on how to use Jenkins to build a simple Node.js and React application with npm.

Notifications You must be signed in to change notification settings

ivaris/simple-node-js-react-npm-app

 
 

Repository files navigation

simple-node-js-react-npm-app

This repository is for the Build a Node.js and React app with npm tutorial in the Jenkins User Documentation.

The repository contains a simple Node.js and React application which generates a web page with the content "Welcome to React" and is accompanied by a test to check that the application renders satisfactorily.

The jenkins directory contains an example of the Jenkinsfile (i.e. Pipeline) you'll be creating yourself during the tutorial and the scripts subdirectory contains shell scripts with commands that are executed when Jenkins processes the "Test" and "Deliver" stages of your Pipeline.

docker network create jenkins

docker volume create jenkins-docker-certs

docker volume create jenkins-data

docker container run --name jenkins-docker --rm --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home --volume "$HOME":/home --publish 3000:3000 docker:dind

docker container run --name jenkins-tutorial --rm --detach
--network jenkins --env DOCKER_HOST=tcp://docker:2376
--env DOCKER_CERT_PATH=/certs/client --env DOCKER_TLS_VERIFY=1
--volume jenkins-data:/var/jenkins_home
--volume jenkins-docker-certs:/certs/client:ro
--volume "$HOME":/home --publish 8080:8080 jenkinsci/blueocean

--Ravi Version

About

For an introductory tutorial on how to use Jenkins to build a simple Node.js and React application with npm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.2%
  • Shell 24.4%
  • HTML 15.6%
  • Groovy 6.5%
  • CSS 4.3%