Add the MirrorDB 💎 to your application's Gemfile 📄:
gem 'mirror-db'
And then execute
$ bundle install
Or install it yourself as
$ gem install mirror-db
-
Install the Rails 💎 (tested using 3.2 and greater)
$ gem install rails
-
Generate your rails project
$ rails new app_name
-
Access your app folder
$ cd app_name
-
Run the mirror installation 💨
$ rails g mirror:install
-
install the Gemfile updated
$ bundle install
-
Run the mirror reflect 💥 (it runs scaffolds, so lets 🍕 while the mirror work for you 🎉)
# DBMS = SGBD rake mirror:reflect[dbms_name database_name username password host]
Obs: params not necessary if default DB connections: localhost, root, no_password 🍻
Congratilation! your new app mirrored is up. 🎉
Granted License, supporting it OpenSource project.
CTD/UnB - Supporting on Mirror Events for entrepreneurs & about connections/marketing to improve it community
- Fork it 🔀 ( https://github.com/MirrorDB/rails-mirror-db )
- Create and check issues pending (good issue pattern created example)
- Create your 🆕 feature branch (
git checkout -b my-new-feature
) - Commit your changes 🆙 (
git commit -am 'Add some feature'
) - Push to the branch 🔁 (
git push origin my-new-feature
) - Create a new Pull Request 🔂