Skip to content

ofunaa/notee

Repository files navigation

Notee

Notee is creating CMS(blog) app by only one command.

BackEnd: Ruby(RailsEngine)
FrontEnd: React.js + Riot.js(only comment part)

Editing View

notee edit view

Notee Demo

notee_getstarted

Installation

gem 'notee'
$ bundle install
$ bundle exec rake notee:start

Setting

1: you must set only reCAPTCHA

Setting Recaptcha

update for your setting in config/initializers/notee.rb

Recommendation using .env

require 'notee'

# Recommendation using .env

Notee.configure do |config|

  # root-user
  config.notee_id = "your_name"
  config.notee_password = "your_password"

  # recaptcha
  config.recaptcha_key = "hogehoge"
  config.recaptcha_secret_key = "hogehoge"

  # blog
  config.blog_meta = {
      title: "Notee",
      url: "http://hogehoge.com",
      keyword: "hoge, hoge, hoge",
      description: "【react&rails】notee is creating CMS(blog) app by only one command.",
      og_image: "http://hogehoge.com/hoge.png"
  }

  # google-analytics
  config.google_analytics = "hogehogehogehoge"
end

Start

$ bundle exec rake db:migrate
$ bundle exec rails s

1: access login page

access this url http://localhost:3000/notee

2: login

and Enter your notee_id & notee_password!

Authority

Writer Editor Manager Root Deleted
Post(Create)      
Post(Update) My Post
Post(Destroy)
Category(Create)
Category(Update)
Category(Destroy)
Image(Create)
Image(Destroy)
User(Create)      
User(Update) My Profile My Profile My Profile
User(Destroy)

Helper Method

Helper Method

Setting Google Analytics

Setting Google Analytics

License

The gem is available as open source under the terms of the MIT License.