Railsjig is a jig for quickly bootstrapping new database driven rails applications. Using the jig, you will produce two Docker containers that drive your application, one for the Rails app itself, and the other for the database that the app uses to manage data.
To use railsjig to rapidly get a database driven rails application running:
Clone the jig repository to a local directory with the name you want to use for your app. To achieve this, run the following command, replacing new-app with your app name:
git clone firstname.lastname@example.org:geordie/railsjig.git new-app
This command will create a directory named new-app that contains the files required to build your container set.
Navigate to the cloned repository
Run the following script to build your new application’s container set:
Optional: This script has options that you can optionally use to configure your application. For example, use the -p argument to specify the database root user password to initialize with:
./buildjig.sh -p my-db-password
To see other options:
This command will take several minutes to complete.
Start your application:
In a browser, navigate to your app at http://localhost
Congratulations, you can now rapidly iterate on your data model and application code.
Now that you’ve successfully bootstrapped your new application, you will likely want to disassociate the railsjig repo from your application directory. The following command will remove the git remote associated with railsjig:
git remote remove origin
MySQL is currently the only supported database
Please submit an issue if you have questions, comments, or would like to contribute.