Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.
/ notable_web Public archive

A web interface for Notable

License

Notifications You must be signed in to change notification settings

ankane/notable_web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notable Web

A web interface for Notable

Installation

Add this line to your application’s Gemfile:

gem "notable_web"

And add it to your config/routes.rb.

mount NotableWeb::Engine, at: "notable"

Be sure to secure the dashboard in production.

Basic Authentication

Set the following variables in your environment or an initializer.

ENV["NOTABLE_USERNAME"] = "andrew"
ENV["NOTABLE_PASSWORD"] = "secret"

Devise

authenticate :user, ->(user) { user.admin? } do
  mount NotableWeb::Engine, at: "notable"
end

will_paginate

If using will_paginate, create an initializer config/initializers/kaminari.rb with:

Kaminari.configure do |config|
  config.page_method_name = :per_page_kaminari
end

to avoid conflicts.

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

To get started with development:

git clone https://github.com/ankane/notable_web.git
cd notable_web
bundle install
bundle exec rake test