• Stars
    star
    168
  • Rank 225,507 (Top 5 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Business Actions architecture for Rails apps

Granite

Granite is an alternative Rails application architecture framework.

Build Status

Installation

Add this line to your application's Gemfile:

gem 'granite'

And then execute:

$ bundle

Or install it yourself as:

$ gem install granite

Usage

Please see our official documentation or check the granite application example.

Versioning

We use semantic versioning for our releases.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/toptal/granite.

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Running specs

To run specs you can run

bin/setup
docker-compose up
rspec

Using Granite's Rubocop config

Add this to your Rubocop config file:

require:
  - rubocop-granite

This will add config for Lint/UselessAccessModifier to treat projector as separate context. It is equivalent to:

Lint/UselessAccessModifier:
  ContextCreatingMethods:
    - projector

License

Granite is released under the MIT License.

More Repositories

1

gitignore.io

Create useful .gitignore files for your project
Swift
8,174
star
2

haste-server

open source pastebin written in node.js
JavaScript
2,885
star
3

keycodes

Easy visualizer for JavaScript KeyCodes
TypeScript
2,153
star
4

chewy

High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
Ruby
1,857
star
5

webdevchecklist.com

Web Developer Checklist
HTML
1,802
star
6

gitignore

The largest collection of useful .gitignore templates
1,653
star
7

haste-client

CLI client for haste-server
Ruby
625
star
8

active-job-style-guide

This Background Jobs style guide is a list of best practices working with Ruby background jobs.
466
star
9

crystalball

Regression Test Selection library for your RSpec test suite
Ruby
321
star
10

picasso

Toptal UI components library
TypeScript
121
star
11

xene

🤖 Modern library with simple API to build great conversational bots.
TypeScript
66
star
12

jvm-monitoring-agent

Monitor JVM from within, detect thread blocks and automatically save threads dump
Java
50
star
13

codeowners-checker

Check .github/CODEOWNERS consistency
Ruby
49
star
14

webpack-assets

Webpack Assets for Rails
Ruby
42
star
15

BestPracticesChromeExtension

Web Developer Checklist
JavaScript
37
star
16

component-resolver-webpack

Webpack plugin that simplifies process of components loading
JavaScript
32
star
17

chewy_example

Chewy example application
Ruby
32
star
18

test-distrib

Ruby
25
star
19

license-cop

A nifty script that fetches the licenses for all your third-party libraries
Python
24
star
20

disqus_api

Disqus API for ruby
Ruby
23
star
21

spring-commands-rubocop

RuboCop command for Spring
Ruby
19
star
22

chai-react-suite

JavaScript
16
star
23

archfiend

A basic daemon generator
Ruby
8
star
24

davinci-github-actions

Reusable Github Actions for davinci based applications
JavaScript
8
star
25

jenkins-job-trigger-action

GitHub Action for triggering Jenkins Jobs and wait build result.
Ruby
7
star
26

trixie

CLI tool to fetch secrets in development
Ruby
6
star
27

rspec-any_of

any_of/all_of argument matcher for RSpec
Ruby
5
star
28

eslint-config-toptal

Shared eslint config for Toptal projects
JavaScript
5
star
29

example_granite_application

Example application for Granite framework
Ruby
4
star
30

rack-rake_task

A simple Rack middleware that allows execution of Rake tasks via the HTTP request
Ruby
2
star
31

slack-mass-messenger

Allows the user to send personalized message to multiple Slack users so it appears on Slack as sent by the user themselves.
Python
2
star
32

topcall-release

1
star
33

tracker-api-load-tester

JavaScript
1
star
34

gitignore.io-docs

Gitignore.io documentation
1
star
35

granite-form

Form builder for granite based on ActiveData
Ruby
1
star
36

rails_commander

Programmatical (Ruby) wrapper to Rails' CLI
Ruby
1
star