GithubHelp home page GithubHelp logo

captain-canary-adventure-app's Introduction

Captain Canary Adventure App

Introduction

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.

Features

  • 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.

Prerequisites

  • 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).

Installation and Running the App

Running Locally without Docker

  1. Clone the Repository:

    git clone https://github.com/dewandemo/captain-canary-adventure-app.git
    cd captain-canary-adventure-app
    
  2. Install Dependencies:

    npm install
    
  3. Start the Application:

    npm start
    

    Access the app at http://localhost:3000.

Running via Docker

  1. Build the Docker Image:

    docker build -t captain-canary-app .
    
  2. Run the Docker Container:

    docker run -p 3000:3000 captain-canary-app
    

    Access the app at http://localhost:3000.

Kubernetes Deployment

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.

Usage

  • 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.

Contributing

Contributions are welcome. Please follow the standard fork, branch, and pull request workflow.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @DewanAhmed - www.dewanahmed.com

Project Link: https://github.com/dewandemo/captain-canary-adventure-app

captain-canary-adventure-app's People

Contributors

dewan-ahmed avatar dewandemo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.