Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.4 KB

GettingStarted.md

File metadata and controls

50 lines (35 loc) · 1.4 KB

ZenQuoter application

Sample Node.js application used during DevopsDays Amsterdam 2020 Online, as part of the GitHub Actions coding challenges.

Running the application locally

  1. Install node packages

    npm install
  2. 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
  3. Run the application

    node index.js
  4. Navigate to the application to add your quote to the wall

    http://localhost:3000/addtowall?repoUrl=<your github repo url>

  5. Display the Zen wall

Running the application from Docker

Make sure you have Docker running locally or that your Docker client points to a Docker host.

  1. Build the docker image

    docker build -t zenquoter .
  2. 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
  3. Navigate to the application to add your quote to the wall

    http://localhost/addtowall?repoUrl=<your github repo url>

  4. Display the Zen wall