The Captain Canary Adventure App is a Node.js web application that showcases Captain Canary's adventures. It toggles between working and vacation modes and displays the Kubernetes pod name when deployed in a cluster.
- Toggle between Captain Canary's working and vacation modes.
- Display the current time in Hawaii during vacation mode.
- Show the Kubernetes pod name when deployed in a cluster.
- Node.js (for local running without Docker).
- Docker installed on your machine (for running via Docker).
- Access to a Kubernetes cluster (optional, for Kubernetes deployment).
-
Clone the Repository:
git clone https://github.com/dewandemo/captain-canary-adventure-app.git cd captain-canary-adventure-app
-
Install Dependencies:
npm install
-
Start the Application:
npm start
Access the app at
http://localhost:3000
.
-
Build the Docker Image:
docker build -t captain-canary-app .
-
Run the Docker Container:
docker run -p 3000:3000 captain-canary-app
Access the app at
http://localhost:3000
.
Refer to the k8s-manifests
folder containing Kubernetes manifests for deploying the app. Update the imageName
and imageTag
in values.yaml
and apply deployment.yaml
and service.yaml
from the templates
folder.
- Access the web app on your browser.
- Click the button to toggle between Captain Canary's modes.
- In vacation mode, enjoy the Hawaii time display.
- In Kubernetes, the pod name is displayed.
Contributions are welcome. Please follow the standard fork, branch, and pull request workflow.
Distributed under the MIT License. See LICENSE
for more information.
Your Name - @DewanAhmed - www.dewanahmed.com
Project Link: https://github.com/dewandemo/captain-canary-adventure-app