Coder Social home page Coder Social logo

viecode09 / kms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apiqcms/kms

0.0 2.0 0.0 11.04 MB

Simple and powerful Ruby on Rails CMS for developers

Home Page: http://apiq.io

License: MIT License

Ruby 54.83% JavaScript 6.66% HTML 33.67% CoffeeScript 2.34% CSS 2.50%

kms's Introduction

๐Ÿ’ช Simple and powerful Ruby on Rails CMS for developers ๐Ÿ’ช

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: [email protected]/password)

Backend (as content manager): http://demo.apiq.io/kms (login/password: [email protected]/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)

kms's People

Contributors

garpit avatar gitter-badger avatar

Watchers

James Cloos avatar Lutvi Rosyady avatar

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.