Skip to content

fluxsaas/feather_cms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this fork

Convert this awsome gem to an mountable engine

Motivation

We have felt the pain of integrating static pages into a Rails application. There are plenty of gems available for this (Radiant, Locomotiv, etc.) but they are very heavy for what we need.

So, we built FeatherCMS. As the name suggests, its a Do-It-Yourself, lightweight CMS - just pages, caching and nothing more!

you want to checkout how it looks and works ?

 git clone https://github.com/fluxsaas/feather_cms.git feather_cms
 cd feather_cms/spec/dummy
 bundle install
 rake feather_cms:install:migrations
 rake db:create
 rake db:migrate
 rails s
 open http://0.0.0.0:3000/feather_cms/pages

Usage

Add the gem to your Gemfile

gem 'feather_cms', git: git://github.com/fluxsaas/feather_cms.git, branch: 'engine'

Add the routes:

mount FeatherCms::Engine => "/feather_cms"

Install the migrations && migrate

rake feather_cms:install:migrations
rake db:migrate

Restart the server && go to

open http://0.0.0.0:3000/feather_cms/pages

Now, generate the pages

# this fork only uses pages from DB

TODO

  • page show view should be available on root route, not namespaced within engine namespace.
  • add authentication
  • add rake tasks to generate static sites for db & file system
  • check cashing
  • add template_types
  • cleanup unused code from lib
  • check page preview stragedy

Contribute

Fork away and send me pull requests!

License

The MIT license

About

Feather CMS is a lightweight CMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.3%
  • Ruby 4.7%