avalonmediasystem/avalon

Name: avalon

Owner: Avalon Media System

Description: Avalon Media System ? Samvera Application

Created: 2012-02-02 17:26:29.0

Updated: 2018-01-16 22:12:24.0

Pushed: 2018-01-16 17:33:11.0

Homepage: http://www.avalonmediasystem.org/

Size: 45169

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Avalon Media System

Avalon Media System is an open source system for managing large collections of digital audio and video. The project is led by the libraries of Indiana University and Northwestern University with funding in part by a three-year National Leadership Grant from the Institute of Museum and Library Services.

Build Status

Stories in Ready

Coverage Status

For more information and regular project updates visit the Avalon blog.

Move to Fedora 4

Please note that effective 14 March 2017, our master branch now tracks our Fedora 4 based Avalon. For our old Fedora 3 based product (Avalon 5.x and earlier) please use the 5.x-stable branch. Enhancements for Avalon 5.x can be submitted to the 5.x-dev branch.

Installing Avalon Media System

Instructions on how to get a local installation of Avalon Media System installed on your system are available for Linux and OS X.

Setting Up an Avalon Media System Development Environment

For developers using OS X, you can get a full Avalon development environment, including transcoding and streaming using docker. See the wiki for details, this is currently our recommended way to setup a dev environment.

The following steps will let you run the avalon stack locally in order to explore the out-of-the-box functionality or do basic development.

Quickstart development with Docker (experimental)

Docker provides an alternative way of setting up an Avalon Media System Development Environment in minutes without installing any dependencies beside Docker itself. It should be noted that the docker-compose.yml provided here is for development only and will be updated continually.

Avalon is served by Webrick in development mode so any changes will be picked up automatically. Running a Rails command inside the Avalon container is easy, for example, to run tests `docker exec -it avalon_avalon_1 bash -c "RAILS_ENV=test bundle exec rspec". Note: to avoid erasing development data, you should use the test stack to run tests``docker-compose -f test.yml up```.

Rails debugging with Pry can be accessed by attaching to the docker container: `docker attach container_name`. Now, when you reach a binding.pry breakpoint in rails, you can step through the breakpoint in that newly attached session.

Javascript style checking and code formatting

ESLint - Style checking

In order to run eslint on javascript files to check prior to creating a pull request do the following:

  1. Install eslint globally, locally on dev machine: npm install -g eslint
  2. Run eslint app/assets/javascripts/ --ext .js,.es6
Prettier - Code formatting

To maintain a consistent style of .js/.es6 code, the Prettier package should be used to clean up code before submitting a pull request.

  1. Install Prettier globally, locally on dev machine: (https://prettier.io/) yarn global add prettier or npm install --global prettier
  2. (optional) To be safe, you may want to commit your code before running through Prettier.
  3. Run the prettier CLI command from the application root directory, for example: prettier --write "app/assets/javascripts/media_player_wrapper/*.es6"
  4. Commit your re-formatted, beautiful code.

Browser Testing

Testing support for Avalon Media System is provided by BrowserStack.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.