GithubHelp home page GithubHelp logo

isabella232 / rearview-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from livingsocial/rearview-engine

0.0 0.0 0.0 6 MB

Rails engine for rearview. This project is for rearview developers only. Users should go to livingsocial/rearview.

License: Other

Ruby 36.70% JavaScript 35.37% CSS 27.52% Shell 0.42%

rearview-engine's Introduction

Build Status Coverage Status Code Climate Gem Version

Rails engine for rearview. This project is for rearview developers only. For users please go to the rearview project for installation, configuration, and other details.

Development Guide

Be sure to read the contribution guidelines contribute.

Intro

Before contributing you should read Getting Started with Engines guide to familiarize yourself with rails engines. This blog post also provides some more in-depth details of rails engines.

Rearview consists of two components:

(1) Rearview engine (this repo)

The vast majority of any code customizations and bug fixes should be made here.

(2) Rearview engine host (https://github.com/livingsocial/rearview)

This is mostly a convienience for users so they can quickly get rearview up and running. This also allows users to customize views and other components at well defined extension points without them having to submit them back into the code base.

Note: the rearview engine is not completely isolated (yet) so it cannot be safely multi-tennated with other engines in the same host

Getting started

clone the rearview engine

git clone [email protected]:livingsocial/rearview-engine.git

clone the rearview engine host

git clone [email protected]:livingsocial/rearview.git

edit the engine host Gemfile to point to your local engine clone

Change the line simliar to this

gem 'rearview', '~> 1.0.0'

To point to the path you cloned the engine too, for example

gem 'rearview', :path => '~/clone/path/rearview-engine'

Update your gems with bundler

bundle install

sync the engine host database

rake rearview:install:migrations
rake db:setup

start the engine host server

bin/rails server

User Interface Guide

The Rearview UI is built using bootstrap, require.js, and backbone.

Rearview does not use the asset pipeline. Instead you'll need to take a look at public/rearview-src. In development mode javascript, css, etc are loaded directly from here. When rearview-engine is bundled as a Gem the various elements are pre-compiled (manually before gem build) using require.js and are loaded from public/rearview.

To compile the ui before distribution, run the following rake task from inside rearview-engine:

rake rearview:ui:build

rearview-engine's People

Contributors

p5k6 avatar seeflanigan avatar steveakers avatar talbright 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.