Skip to content

jonathanmeaney/rails8-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rails8 Template

This template sets up a new Rails 8 application with some default functionality already setup.

Default features

  • Authenticated Grape API with Grape entities.
  • Swagger documentation available at /api-docs URL (in development only).
  • User registration and login.
  • User profile.

How to use

rails new someAppName --api --devcontainer -m /path/to/rails8-template/grape_api_template.rb

E.G

rails new someAppName --api --devcontainer -m /Users/jonathanmeaney/Development/rails/rails8-template/grape_api_template.rb

devcontainer.json

If using devcontainer then the following customization is useful for Ruby and Rails development!

"customizations": {
  "vscode": {
    "extensions": [
      "ms-azuretools.vscode-docker",
      "shopify.ruby-lsp",
      "misogi.ruby-rubocop",
      "shopify.ruby-extensions-pack",
      "esbenp.prettier-vscode",
      "fvclaus.sort-json-array"
    ],
    "settings": {
      "ruby.lint": {
        "rubocop": {
          "lint": true
        }
      },
      "ruby.format": "rubocop",
      "ruby.rubocop.executePath": "/home/vscode/.local/share/mise/installs/ruby/3.4.1/bin/",
      "files.associations": {
        "Gemfile": "ruby"
      },
      "[ruby]": {
        "editor.defaultFormatter": "misogi.ruby-rubocop",
        "editor.formatOnSave": true
      },
      "[yaml, yml]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "editor.formatOnSave": true
      },
      "prettier": {
        "configPath": "prettierrc.yaml"
      }
    }
  }
}

About

A template for Rails 8 that sets up a basic and expandable application using a Grape API along with Swagger documentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors