Giter VIP home page Giter VIP logo

Komposable

Maintainability

Komposable allows you to quickly build a modular back-office for your Rails app. It offers standard features and allows you to implement you own specific needs easily.

It's based on the following existing gems:

This gem has been inspired by fae. It is developed by Ouvrages and Etamin Studio.

Getting started

# Gemfile

gem "komposable"

# For now, we have to add it manually
# TODO: include it in the gemspec dependencies
gem 'meta-tags', github: 'etaminstudio/meta-tags', branch: 'rename-title-helper'

Copy and run the migrations from the engine:

bin/rails komposable:install:migrations
bin/rails db:migrate

Add at the beginning of the routes:

# config/routes.rb

namespace :admin do
  root "pages#index"
  resources :pages
end

mount Komposable::Engine => "/admin"

Add at the end of the file:

# config/initializers/assets.rb

Rails.application.config.assets.precompile += %w( admin.js admin.css )

Add the engine path to resolved paths for webpacker and postcss:

# config/webpacker.yml

  resolved_paths:
    - frontend
    - vendor/komposable/frontend
# .postcssrc.yml

  postcss-import: {
    path: [
      'frontend',
      'vendor/komposable/frontend'
    ]
  }

Create a new javascript pack:

// frontend/packs/admin.js

import "komposable/frontend/packs/admin";

Navigation

To define your own navigation in the admin, you can override the admin/header component.

$ mkdir frontend/components/admin
$ cp -r vendor/komposable/frontend/components/admin/header frontend/components/admin

Komposable's Projects

klassnames icon klassnames

Helper to simplify conditional CSS classes in Ruby on Rails views.

komponent icon komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components

komposable icon komposable

[Work in progress] A Rails admin engine based on components

komposer icon komposer

Collection of generators to create admin dashboard.

middleman-komponent icon middleman-komponent

[WIP] An opinionated way of organizing front-end code in Middleman, based on components

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.