Coder Social home page Coder Social logo

mikerogers0 / bootstrap-o-matic Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 192 KB

A Rails app to generate Bootstrap SCSS configurations.

Ruby 57.17% JavaScript 13.60% CSS 0.82% HTML 22.00% Shell 0.65% Dockerfile 2.73% SCSS 3.03%
ruby-on-rails bootstrap simple-form

bootstrap-o-matic's Introduction

Bootstrap-O-Matic

Use http://colormind.io/ & http://bebraw.github.io/colorjoe/, to generate Bootstrap 4 configurations.

image

Setup & Running Locally

Clone down the repo, install Docker & run:

$ docker-compose build
$ docker-compose run --rm web bin/setup
$ docker-compose up

This will build the docker image, then setup the bin/setup file which will run bundle, yarn & create the database.

Then navigate your browser to https://127.0.0.1:3000/ to see your site.

Running one of commands

To run a one off command, run it within the web service, e.g:

$ docker-compose run --rm web rails db:migrate

Restoring a database

If you have an existing database dump in a file called latest.dump, you can restore it by turning on just the postgres service in one terminal tab, and running pg_restore in a secondary tab:

$ docker-compose up postgres
$ pg_restore --verbose --clean --no-acl --no-owner -j 2 -h localhost -d App_development --username postgres latest.dump

Tests

The template comes preconfigured with RSpec for tests, and comes with a GitHub Action to run them when you push to GitHub.

You can run RSpec locally by running:

$ docker-compose -f docker-compose.ci.yml run --rm test

Linting

This app uses Standard for Ruby and includes a GitHub Action to check future commits are up to standard.

Usage

Feel free to use these as a starting point for your own Ruby on Rails project!

Resources

License

MIT

Copyright (c) 2020-present, Mike Rogers

bootstrap-o-matic's People

Contributors

mikerogers0 avatar

Watchers

 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.