Giter Site home page Giter Site logo

andrewmcodes / shotgun Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 2.0 1.44 MB

Ready to go Rails App with TailwindCSS, ViewComponent, Devise, and more!

License: MIT License

Ruby 75.30% JavaScript 7.75% CSS 0.78% HTML 15.53% Shell 0.64%
tailwindcss stimulusjs stimulus rails webpacker sidekiq devise template

shotgun's Introduction

Base Branch

All Contributors

GitHub License GitHub issues contributions welcome

WIP: Rails Shotgun

Ruby on Rails application initialized with all the good stuff. Use at your own risk or we welcome pull requests. I will be working on a roadmap soon.

Why is it named Shotgun??

Shotgunning a beer is the simple act of consuming a beer at a high rate of speed.

The inspiration came from one of my common college activities. Rails Shotgun lets you be as productive as shotgunning a beer is at getting you drunk.

Setup

Please take note that we are using main as the base branch.

Base Branch

System dependencies

  • Ruby version: 2.7.1
  • Rails version: 6.0.3.2
  • Database: PostgreSQL
  • Redis installed

Rename Application

You will want to rename the application first. Here are some options:

  • Watch the CodeTour
  • Find and replace CHANGEME throughout. Note that if you take this method, you need to be aware of using the correct case.

Configuration

Make sure the app has been renamed before doing these steps.

Automated

bin/setup

Manually

Copy an existing sample environment file. Run:

```bash
$ cp .env.sample .env

and edit newly created .env file. The minimum you are going to need are credentials to your local PostgreSQL database.

Then, install all the necessary dependencies:

bundle install && yarn install

Database creation

In order to create the database with all the necessary seed data, run:

rails db:create db:schema:load db:seed

How to start the app

Start the Ruby on Rails server with:

rails server

We highly recommend running the weback dev server in another tab instead of inline compilation that will occur if you don't for speed.

bin/webpack-dev-server

To optionally run Sidekiq, launch another process with:

bundle exec sidekiq

Code quality checks

The application provides the following code quality analysis tools:

To run them locally:

$ bundle exec brakeman
$ bundle exec fasterer
$ bundle exec rails_best_practices
$ bundle audit

Removed Gems

Changelog

Coming Soon

Contributing

Contributing Guide

Code of Conduct

Code of Conduct

License

MIT

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Andrew Mason

๐Ÿ’ป ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿ‘€ ๐Ÿ’ฌ

cjilbert504

๐Ÿ’ป ๐Ÿ›

This project follows the all-contributors specification. Contributions of any kind welcome!

shotgun's People

Contributors

allcontributors[bot] avatar andrewmcodes avatar cjilbert504 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shotgun's Issues

Stop checking yarn integrity in development

Describe the bug

Running bin/setup will likely fail because the yarn packages may be out of date. This isn't a concern and we should disable the behavior, introduced by enabling check_yarn_integrity to true in the webpacker config.

Specifically this line should be removed as well as the comment above it. We set this to false in our defaults, so once this line is removed, we will no longer be overriding it in development and yarn install will stop failing.

To Reproduce

  1. Create a new app with this template
  2. Clone the app and cd into the folder
  3. Run bin/setup

Expected behavior

This command executes and does not fail to yarn due to out of date js packages.

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.