Giter Club home page Giter Club logo

zazo-shared's Introduction

Zazo Shared

Usage

Dump existing databases' schemas:

rake db:multiple:schema:dump

Load databases' schemas:

rake db:multiple:schema:load

Setup

Add this line to Rakefile:

Dir.glob('shared/lib/tasks/*.rake').each { |r| load r }

Add this lines to config/application.rb:

config.autoload_paths += %W(#{config.root}/shared/app/models)
self.paths['config/database'] = 'shared/config/database.yml'

Create config/initializers/shared.rb file with content below:

Dir[Rails.root.join('shared/config/initializers/**/*.rb')].each { |f| require f }

Set up ENV-variables in config/application.yml

users_db_host:
users_db_name:
users_db_username:
users_db_password:

events_db_host:
events_db_name:
events_db_username:
events_db_password:

Create spec/rails_helper.rb file with content below:

ENV['RAILS_ENV'] ||= 'test'

require_relative '../shared/spec/spec_helper'

Add shared gems to Gemfile:

gem 'rails'
gem 'pg'
gem 'mysql2'

gem 'rollbar'
gem 'settingslogic'
gem 'figaro', github: 'asux/figaro', branch: 'feature/eb-set-command'

gem 'aasm'
gem 'phonelib'
gem 'global_phone'
gem 'enum_handler', github: 'asux/enum_handler'

group :development do
  gem 'better_errors'
  gem 'binding_of_caller'
  gem 'guard'
  gem 'guard-bundler', require: false
  gem 'guard-pow', require: false
  gem 'guard-rspec', require: false
  gem 'guard-zeus'
  gem 'terminal-notifier-guard'
  gem 'rack-mini-profiler'
  gem 'bullet'
end

group :development, :test do
  gem 'pry-rescue'
  gem 'pry-remote'
  gem 'pry-byebug', '= 1.3.3'
  gem 'rspec-rails'
end

group :test do
  gem 'database_cleaner'
  gem 'factory_girl_rails'
  gem 'faker'
  gem 'shoulda-matchers', '~> 3.0'
  gem 'simplecov', require: false
  gem 'timecop'
end

zazo-shared's People

Contributors

vano468 avatar

Watchers

James Cloos avatar Sani Elfishawy 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.