Coder Social home page Coder Social logo

lokka's Introduction

Lokka

CMS written in Ruby for cloud computing.

Features

  • Performs in the cloud environment such as Google App Engine and Heroku as well as Windows, Mac, and Linux.
  • Designed with reference to WordPress for WordPress users to easily understand.
  • Easy installation
  • Easy to create a theme for designers.
  • A clear plug-in API for Rubyists

Installation

$ git clone git://github.com/lokka/lokka.git
$ cd lokka
$ bundle install --without=production:test
$ bundle exec rake db:setup
$ bundle exec rackup

View at: http://localhost:9292/

Deploy to Heroku

$ git clone git://github.com/lokka/lokka.git
$ cd lokka
$ heroku create
$ git push heroku master
$ heroku addons:add heroku-postgresql:hobby-dev
$ heroku rake db:setup
$ heroku open

or just copy and paste

curl -L http://bit.ly/ROX0lk | bash -s

to your terminal

Docker

$ bin/docker_gemfile
$ docker-compose build
$ docker-compose run --rm app bundle exec rake db:setup
$ docker-compose up

open http://localhost:9292 on your browser.

Test

rake spec

How to make a theme

Make a directory for theme in public/theme and you need to create entries.erb and entry.erb at least. (erb, haml and slim is available.)

Index page

public/theme/example/entries.haml:

!!! XML
!!!
%html
  %head
    %title Example
  %body
    %h1= @site.title
    - @entries.each do |entry|
      %h2= entry.title
      .body= entry.body

Individual page

public/theme/example/entry.haml:

!!! XML
!!!
%html
  %head
    %title Example
  %body
    %h1= @site.title
    %h2= @entry.title
    .body= @entry.body

How to make a plugin

Lokka Plugin is subset of Sinatra Extension. but Lokka had a specific rules of nomenclature. If you need display "Hello, World" when access to "/hello", Write a following.

public/plugin/lokka-hello/lib/lokka/hello.rb:

module Lokka::Hello
  def self.registerd(app)
    app.get '/hello' do
      'hello'
    end
  end
end

Copyright

Copyright (c) 2010 Masaki Komagata. See LICENSE for details.

lokka's People

Contributors

1syo avatar arton avatar ayumin avatar champierre avatar daichirata avatar dependabot[bot] avatar elm200 avatar gnnk avatar hrysd avatar is8r avatar jiikko avatar juno avatar kano4 avatar kmamiya avatar komagata avatar machida avatar milligramme avatar morygonzalez avatar nkmrshn avatar pwim avatar rono23 avatar sanemat avatar satococoa avatar sorah avatar tkawa avatar tomykaira avatar tyabe avatar yagitoshiro avatar yasikoba avatar yayugu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lokka's Issues

NameError - uninitialized constant Psych::PrivateType:

git clone git://github.com/komagata/lokka.git
で最新版を取得して、install.rb完遂後lokka.rbを起動して、ブラウザからアクセスすると下記の場所で表題のエラーが出ます。

lokka/lib/lokka/app.rb:477:in `block in class:App'

環境を以下に記します。
Ubuntu 10.10 / ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

他必要な情報があれば教えてください。

The dialog is displayed when installing it in Windows7.

The error dialog is displayed when installing it in Windows7.

プログラム互換アシスタント
「このプログラムは正しくインストールされなかった可能性があります」

It doesn't start even if it operates it according to the procedure after that.

`bundle exec rake install` failed

% bundle exec rake install
Could not find gem 'rack-flash (= 0.1.1, runtime)' in any of the gem sources.

Is bundle install right?

It falls after pyha.exe starts.

It executes it by the manager authority.

C:> pyha.exe
Show http://localhost:9292/
bundle exec rackup
config.ru:1:in require': no such file to load -- init (LoadError) from config.ru:1:inblock in

'
from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in instance_eval' from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:ininitialize'
from config.ru:1:in new' from config.ru:1:in'
from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:35:in eval' from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:35:inparse_file'
from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:162:in app' from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:248:inwrapped_app'
from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:213:in start' from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:100:instart'
from C:/App/bundle/ruby/1.9.1/gems/rack-1.2.1/bin/rackup:4:in <top (required)>' from C:/App/bundle/ruby/1.9.1/bin/rackup:19:inload'
from C:/App/bundle/ruby/1.9.1/bin/rackup:19:in `'

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.