mathewtrivett / hmu-rails

Hit me up Rails! πŸ€™ Rails app template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hit me up Rails πŸ€™

Just another Rails app template

hmu-rails aims to provide a general starting point for rails applications building off the Rails principle of convention over configuration.

What does it do?

Application

Background jobs

  • Installs sidekiq for running background jobs with ActiveJob.
  • Installs sidekiq-scheduler for scheduling background jobs

Documentation

  • Creates a docs directory to store project documentation
  • Creates a docs/index.md file with a minimal template for documentation
  • Creates a docs/adr directory to log technical decisions using the Architectural Decision Record format with a README and template.
  • Creates up a sample README.md file and links back to your docs

Linting

Backend

  • Installs rubocop and creates a standard rubocop file.

Frontend

  • Installs eslint and creates an eslint file for rails projects.

Testing tools

Backend

Frontend

Secrets and configuration

  • Installs [dotenv] to support use of environment variables in development.
  • Adds the .env file to .gitignore so it isn't accidentally checked into version control.
  • Creates a example.env file to support sharing of example environment variables between developers.
  • Deviation - Explore use of encrypted config/credentials.yml.enc file for storing secrets.

Frontend assets

  • Configures webpack to build frontend assets.

How to use it

Prerequisites

You will need the following dependencies installed on your machine.

Running it locally

  1. git clone https://github.com/mathewtrivett/hmu-rails.git the repository to where you store your code.
  2. cd to where you want to create your Rails project.
  3. Run rails new APP_NAME -d postgresql -m path/to/hmu-rails/template.rb

Contributing

Adding new Gems

About

Hit me up Rails! πŸ€™ Rails app template

License:MIT License


Languages

Language:Ruby 100.0%