Sample Node.js application used during DevopsDays Amsterdam 2020 Online, as part of the GitHub Actions coding challenges.
-
Install node packages
npm install
-
Set the
BASE_URL
environment variable to https://devopsdaysams.azurewebsites.net/api/AddToWall$env:BASE_URL="https://devopsdaysams.azurewebsites.net/api/AddToWall"
or
export BASE_URL=https://devopsdaysams.azurewebsites.net/api/AddToWall
-
Run the application
node index.js
-
Navigate to the application to add your quote to the wall
http://localhost:3000/addtowall?repoUrl=<your github repo url>
-
Display the Zen wall
Make sure you have Docker running locally or that your Docker client points to a Docker host.
-
Build the docker image
docker build -t zenquoter .
-
Run the container and expose the app on local port 80 - specify the base url environment variable
docker run -d -p 80:80 -e BASE_URL=https://devopsdaysams.azurewebsites.net/api/AddToWall zenquoter
-
Navigate to the application to add your quote to the wall
http://localhost/addtowall?repoUrl=<your github repo url>
-
Display the Zen wall