view-component-demo
view-component-demo copied to clipboard
Rails application with ViewComponent
view-component-demo
Rails application with ViewComponent, using the https://github.com/github/view_component
gem.
Ruby version
Use your favorite Ruby version manager to install 3.0.0
.
Local development
Install Postgres as desired.
Configuration
bundle install
npm install
Database creation
rails db:setup
How to run the test suite
bundle exec rake
Server
rails s
Benchmark
Run server in production mode: RAILS_ENV=production rails s
.
Load /benchmark
and read server log.