Git Product home page Git Product logo

castthat.app's Introduction

CastThat.app

Build Status Vulnerability Status Maintainability Status

Cast dashboards at any URL to your TV non-interactively without tab mirroring.

Configuring for Development

This application is a static site built with Gatsby, tested with Pa11y and Jest, with infrastructure managed by Terraform.

Web Application

A modern version of Node.js is required. If you’re relatively up-to-date, you’ll probably be able to install and run without issues. If you’re having troubles, try the version of Node used to run tests on CircleCI.

After cloning this repository, install dependencies:

npm install

Ensure everything is working as expected by running the tests:

npm test

To start the development server to see the site locally, run:

npm start

Configuring a Local Cast Application

To Cast URLs locally to a local Chromecast device, you’ll need to register a test Chromecast application with Google using the serial number of your Chromecast that you’ll be testing with.

  1. Register a new Cast application.

    • This application is a Custom Receiver.
    • When setting the Receiver Application URL, do not use http://localhost:8000, or the Chromecast will attempt to navigate to itself instead of your computer. Instead, use your computer’s IP address or hostname.
  2. Create a .env configuration file with the Cast application’s identifier in the root directory of this repository:

    CAST_APPLICATION_ID=12345678
  3. Register your Chromecast as a test device.

    • To easily get your device’s serial number, look for the small speaker icon next to the Serial Number field to have your Chromecast read out and display its serial number on your TV.
  4. Wait 15 minutes. According to Google, it may take up to 15 minutes to register your device.

  5. Reboot your Chromecast. This can be done using the Google Home application, or by unplugging it from power and plugging it back in.

Deploying to Production

Web application deploys happen automatically upon merging to master by CircleCI. See the CircleCI configuration for more details.

Infrastructure

This app is deployed as a static site on Amazon S3, with certificates and caching provided by Amazon Cloudfront, managed by Terraform. See /infrastructure to examine the provisioned infrastructure more specifically.

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.