GithubHelp home page GithubHelp logo

railsjig's Introduction

Railsjig

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.

Prerequisites

  • docker
  • docker-compose

Getting Started

To use railsjig to rapidly get a database driven rails application running:

  1. 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 [email protected]:geordie/railsjig.git new-app

    This command will create a directory named new-app that contains the files required to build your container set.

  2. Navigate to the cloned repository

    cd new-app

  3. Run the following script to build your new application's container set:

    ./buildjig.sh

    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:

    ./build.sh -h

    This command will take several minutes to complete.

  4. Start your application:

    docker-compose up

  5. In a browser, navigate to your app at http://localhost

  6. Congratulations, you can now rapidly iterate on your data model and application code.

  7. 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

Additional Details

  • MySQL is currently the only supported database

  • Please submit an issue if you have questions, comments, or would like to contribute.

railsjig's People

Contributors

geordie avatar

Stargazers

Serhii Ponomarov avatar

Watchers

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