kms

Simple and powerful Ruby on Rails CMS for developers.
30 May 20183374

💪 Simple and powerful Ruby on Rails CMS for developers 💪

Join Slack Join the chat at https://gitter.im/kms-app/Lobby Gem Version Build Status Code Climate Dependency Status

APIQ is a modern and flexible Ruby on Rails content management system with modular approach. It utilizes the most latest features from Rails and PostgreSQL (such as json column type, for example). Mostly inspired by LocomotiveCMS, but in contrast with it APIQ CMS relies on robust PostgreSQL database and doesn't provide all-in-one solution. The basic idea behind APIQ CMS: minimal core, extendable via extensions (engines). So you can take only what you need.

Gif

Demo

Demo website: http://demo.apiq.io/

Backend (as admin): http://demo.apiq.io/kms (login/password: demo@apiq.io/password)

Backend (as content manager): http://demo.apiq.io/kms (login/password: content@apiq.io/password)

Built with good tools

  • Ruby on Rails (>= 4.2, Rails 5 supported as well)
  • Angular.js
  • Responsive Dashboard template
  • Liquor template language
  • PostgreSQL (recommended for DB)

Features included:

  • Minimal basis/core - Templates, Pages, Assets and Snippets
  • Extendable via Rails Engines
  • Beautiful and responsive admin panel
  • Simple and Powerful Template language - Liquor
  • Built-in documentation/help

Installation

  1. Add to Gemfile

     gem "kms"
     # or for edge version:
     gem "kms", github: "webgradus/kms"
    
  2. Setup database.yml (only PostgreSQL 9.2+ supported)

  3. Run generator:

     rails g kms:install
    
  4. Copy migrations:

     rails kms:install:migrations
    
  5. Migrate:

     rails db:migrate
    
  6. Set locale in your main app.

  7. Precompile assets (if it will be production app):

     RAILS_ENV=production bundle exec rails assets:precompile
    
  8. Run it using your favorite webserver - unicorn, puma, thin

  9. Open your browser at http://localhost:3000/kms and sign up first admin user.

Getting started

Please watch this video to start working in APIQ:

Getting started in APIQ - Ruby on Rails CMS

Amazon S3 for assets storage

By default, APIQ offers local file system as storage for your assets. But you could use Amazon S3 as well. Just follow these simple steps:

  1. Add to Gemfile special gem for storing secrets. For example, this could be dotenv-rails or figaro. Don't forget to bundle install

     gem 'dotenv-rails'
    
  2. Setup your .env file with these variables:

     KMS_ASSETS_STORAGE=fog
     AWS_ACCESS_KEY_ID=your_access_key
     AWS_SECRET_ACCESS_KEY=your_secret_key
     AWS_BUCKET=bucket_name
     AWS_REGION=eu-central-1 # or region you want
    
  3. If you ran rails g kms:install, then you should have config/initializers/carrierwave.rb. Feel free to customize it.

     CarrierWave.configure do |config|
       if ENV['KMS_ASSETS_STORAGE'] == 'fog'
         config.fog_provider = 'fog/aws'
         ...
    

Extensions

Contributing

Please follow CONTRIBUTING.md.

Running problems

  • Make sure you have "pids" and "sockets" folders in project's "tmp" folder (if using Puma especially)