Skip to content

Latest commit

 

History

History
94 lines (58 loc) · 2.38 KB

README.md

File metadata and controls

94 lines (58 loc) · 2.38 KB

Co-Cast Live

The client for everyone who wants to create a Co-Cast (r) web client

Getting Started

To run and install Co-Cast Live, you will need:

  1. Clone this repository.
  2. Install the dependencies if you don't already have them.
  3. Modify the application to your liking.
  4. Deploy your production code.

Clone this repository

git clone https://github.com/smartcanvas/co-cast

Install dependencies

Quick-start (for experienced users)

With Node.js installed, run the following one liner from the root of your Co-Cast Live download:

npm install -g gulp bower && npm install && bower install

Prerequisites (for everyone)

The full installation requires the following major dependencies:

  • Node.js, used to run JavaScript tools from the command line.
  • npm, the node package manager, installed with Node.js and used to install Node.js packages.
  • gulp, a Node.js-based build tool.
  • bower, a Node.js-based package manager used to install front-end packages (like Polymer).

To install dependencies:

  1. Check your Node.js version.
node --version

The version should be at or above 0.12.x.

  1. If you don't have Node.js installed, or you have a lower version, go to nodejs.org and click on the big green Install button.

  2. Install gulp and bower globally.

npm install -g gulp bower

This lets you run gulp and bower from the command line.

  1. Install the Co-Cast's local npm and bower dependencies.
cd co-cast && npm install && bower install

This installs the basic elements and tools Co-Cast requires to build and serve content on televisions.

Development workflow

Serve / watch

gulp serve

This outputs an IP address you can use to locally test and another that can be used on devices connected to your network.

Run tests

gulp test:local

This runs the unit tests defined in the app/test directory through web-component-tester.

To run tests Java 7 or higher is required. To update Java go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download JDK and install it.

Build & Vulcanize

gulp

Build and optimize the current project, ready for deployment. This includes linting as well as vulcanization, image, script, stylesheet and HTML optimization and minification.