Giter Site home page Giter Site logo

vidijs-ui's Introduction

!!! THIS PROJECT HAS BEEN MOVED TO vidispine/admin-tool !!!

VidiJS

VidiJS showcases Vidispine API features within a simple user interface. The application runs in a web browser and communicates directly with the API without the need for any middleware. It works out of the box with any Vidispine API server, including Vidispine as a Service, without the need for any configuration.

Login

The VidiJS application runs in a single webpage which means that a bundle of static files need to be downloaded once, then the browser will dynamically rendered pages based on the JSON data returned from the Vidispine API. The bundle can be hosted by any webserver, including an S3 bucket. This means updates to the application can be simply rolled out by updating the bundle and reloading the browser.

Shape

The intention of the application is to demonstrate all API endpoints with a consistent user experience. This includes viewing lists or entities, forms that allow entry of any possible value within the schema, and actions to create/update/remove entities.

An icon in the toolbar displays the data returned from the Vidispine API server which has been used to render the UI. For further detail, the API requests can be monitored via the browser's inspector tools. This clearly demonstrates to developers the correct syntax to use when integrating Vidispine API into their own products.

A lightweight Docker image containing VidiJS can be created or downloaded from Docker Hub. This includes the webserver (Nginx) which caches the static files and proxies requests to the Vidispine API to avoid Cross-Origin errors.

Get Started

Docker

The docker image runs the Nginx webserver which serves the static content and proxies API request.

Run

  • Start the container with the latest image.
docker run \
  --name vidijs \
  --detach \
  --tty \
  --interactive \
  --rm \
  -e VIDISPINE_URL='http://my-vidispine-server:8080' \
  -p 80:80 \
  'vidijs/vidijs:latest'

Run Environment Variables

  • VIDISPINE_URL: The URL (including http/s and port) to access the Vidispine API.
    • Do not include a trailing / on the URL as it will break the Nginx proxy.
    • If running in Compose/Kubernetes, this should be the service name.
    • If running on localhost either use docker.for.mac.localhost, docker.for.win.localhost, the IP address of the host on the docker network, or use --net=host.

Ports

  • 80: Web service

Source

  • Install nodejs and yarn.

  • Clone this project and change into the project folder.

  • Install dependencies.

yarn install
  • Start with VIDISPINE_URL (default: http://localhost:8080)
VIDISPINE_URL='https://example.myvidispine.com' yarn start

Build

  • Compile the application locally.
yarn build
  • Build the docker image with the latest tag. Note that only files/folders specified with ! prefix in the .dockerignore will be included.
yarn run build-container

vidijs-ui's People

Contributors

alexjennings avatar sirf avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sirf

vidijs-ui's Issues

When I run the docker container in mac. I am getting the issue

Hi,

Can some one help me. Here I am using mac machine. After successfully run docker container and hosted the localhost. I found the below response with nginx. I observed this issue is only in Mac system.

<title>502 Bad Gateway</title>

502 Bad Gateway


nginx/1.17.8

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.