Giter Site home page Giter Site logo

unibus's Introduction

E Unibus Pluram CircleCI

Out of one, many.

Features

  • Run RSpec tests for all projects automatically via CircleCI 2.0
    • See circle.yml
  • Heroku Deployment via Hub-Spoke Buildpack
    • Include arbitrary number of engines in each application.

Why?

  • Build one application-per-audience.
  • Be AuthZ Free™ by spinning up new spoke Rails applications (that include core) for each new consumer.
  • Given a single repo, all related applications (that share a database) are free to run alongside one another without tripping over internal gem versioning.
  • Each Rails app can mount its own devise model, whether or not that model lives in core.

Structure

Caveats

A single application must be appointed "primary" and is responsible for maintaining and running migrations. In our case, it's customer. However, that makes utilizing rails g model Foo in employee a little more cumbersome.

Tips

  • Ignore .engines in your editor's project settings.

Setup Notes

# create all the rails app
rbenv local 2.3.1
gem install rails
rbenv rehash

rails plugin new api -T --mountable --dummy-path=spec/dummy --database=postgresql
rails plugin new core -T --mountable --dummy-path=spec/dummy --database=postgresql

rails new customer -T --database=postgresql
rails new employee -T --database=postgresql

ln -s $PWD/customer ~/.pow/unibus-customer
ln -s $PWD/employee ~/.pow/unibus-employee

unibus's People

Contributors

nonrational avatar dependabot[bot] avatar

Watchers

 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.