New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rails-dashboard

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails-dashboard

This application is dev-tool for rails, to improve your rails log.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

Rails Dashboard

This application is dev-tool for rails, to improve your rails log.

demo

Breakdown View

demo

Params View

demo

ActiveRecords View

demo

demo

Renderings View

demo

(Raw) Log View

demo

Usage

$ npm install -g rails-dashboard
$ cd your/rails/project
$ rails-dashboard bin/rails s

# If you use npm 5.2 or higher
$ cd your/rails/project
$ npx rails-dashboard bin/rails s

and go to 'http://localhost:3000', then any operate.

Keymap

keydesc
j or move down main-view by 1 row
k or move up main-view by 1 row
spacemove down main-view by 1 page
shift + spacemove up main-view by 1 page
gmove to top
shift + gmove to bottom
shift + jmove down sub-view(currently [Log] tab only) by 1 row
shift + kmove up sub-view(currently [Log] tab only) by 1 row
entershow detail about selected row
escapehide detail
bshow detail with Breakdown tab
pshow detail with Params tab
ashow detail with ActiveRecord tab
rshow detail with Rendering tab
lshow detail with Log tab

Disclaimer

  • supported terminal application is Terminal.app, iTerm2.app and Hyper on Mac OS. (maybe works fine on Windows and Linux)
  • recommended terminal window size is 100 cols * 30 rows higher.
  • current supported Rails is version 5.1 and using Puma. but if there is no difference in format of the log, maybe works fine. If don't works fine, send the log to me please.

Troubleshooting

Not working to scroll in (long) log subview.

iTerm2.app

Try to run following command, and restart iTerm2.

$ defaults write com.googlecode.iterm2 AlternateMouseScroll -bool true

FYI: https://stackoverflow.com/a/24695541

Terminal.app

You'll need to allow mouse reporting. on menu [View] → [Allow Mouse Reporting].

Inspired by

  • RailsPanel : RailsPanel is a Chrome extension for Rails development that will end your tailing of development.log
  • webpack-dashboard : A CLI dashboard for your webpack dev server.
  • Tig : Tig is an ncurses-based text-mode interface for git.

Thanks!

Contributing

Pull requests and issues are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request!

Development

(optional) Setup Rails app

  1. clone the Rails repository. $ git clone https://github.com/y-takey/dmy-rails
  2. setup. $ cd dmy-rails && bundle && bin/rails db:migrate

Setup

  1. clone this repository. $ git clone https://github.com/y-takey/rails-dashboard.git
  2. npm install. $ cd rails-dashboard && yarn install # or npm install

Run

$ cd your/rails/project/path  # e.g. cd dmy-rails
$ NODE_ENV=dev ../rails-dashboard/node_modules/.bin/babel-node ../rails-dashboard/bin/rails-dashboard.js bin/rails s

# or to generate dummy request, use this
$ NODE_ENV=dmy ../rails-dashboard/node_modules/.bin/babel-node ../rails-dashboard/bin/rails-dashboard.js bin/rails s

Keywords

FAQs

Package last updated on 12 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc