Lookbook is a UI development environment for Ruby on Rails applications.
🚨 This is the v2.0 development branch! 🚨
For the current stable release see the main branch.
Resources
- 🚧 Docs: v2.lookbook.build
- 🚧 Demo: v2-demo.lookbook.build/ (repo here)
Development
Lookbook is implemented as an isolated Rails Engine and uses ViewComponent, Tailwind and Alpine for its UI.
This repository contains:
- The Lookbook source code (
/app
,/lib
,/config
, etc) - The Lookbook documentation site source code and content (
/docs
). - A test suite with a ‘runable’ dummy app (
/spec
).
Documentation site
The Lookbook docs site is built using Bridgetown and the source files can be found in the ./docs
directory.
To preview changes locally you can run a development version of the docs site:
- Clone this repo
- Install dependencies:
bundle install
- Start the app:
bin/docs
- Visit http://localhost:4000
Testing
Lookbook uses RSpec for testing.
Tests can be run using the rake spec
or bundle exec rspec
commands.
The dummy app that the tests are being run against can be viewed by running the bin/dummy
command and then browsing to http://localhost:9292/lookbook
Contributing
Lookbook is an un-funded open source project and contributions of all types and sizes are most welcome!
Please take the time to read over the Contributing guide before making your first contribution and if anything isn’t clear then start a discussion and we will do our best to help you out.
Contributors
Lookbook was created by Mark Perkins and continues to grow
& improve thanks to the ideas, suggestions and hard work of all of these excellent humans:
License
The gem is available as open source under the terms of the MIT License.