Coder Social home page Coder Social logo

danielnc / lookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viewcomponent/lookbook

0.0 0.0 0.0 32.27 MB

A tool to help browse, develop, test & document ViewComponents in Ruby on Rails apps ๐Ÿ› 

Home Page: https://lookbook.build

License: MIT License

Shell 0.03% JavaScript 82.17% Ruby 11.95% CSS 1.60% HTML 3.95% Roff 0.30%

lookbook's Introduction

Lookbook

Gem version CI status

A tool to help browse, develop, test & document ViewComponents in Ruby on Rails apps.

Documentation

Lookbook (v1.x) documentation: https://lookbook.build

Looking for v0.9.x docs? Head over here.

Demo

Online Demo: https://lookbook-demo-app.herokuapp.com/lookbook

Lookbook UI

Development

Lookbook's UI is itself built using ViewComponents. To preview these components in a Lookbook instance you can run the included workbench app:

  1. Clone this repo
  2. Install dependencies: bundle install & npm install
  3. Start the app: bin/workbench
  4. Visit http://localhost:4545/lookbook to view the Lookbook instance

The workbench app will be started in development mode and any changes to Lookbook's views or assets will immediately be reflected in the UI.

Docs site

The Lookbook docs site is built using Bridgetown and the source files can be found in the ./docs directory.

To see a local version of the site run bin/docs from the root of this repo and then visit http://localhost:4000 in your browser.

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

License

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

lookbook's People

Contributors

allmarkedup avatar leighhalliday avatar drbragg avatar sakin avatar jonrohan avatar kirillplatonov avatar steves avatar muriloime avatar thutterer avatar edwinthinks avatar dmorgan-fa avatar stevetidy avatar mdrbohlav avatar dependabot[bot] avatar robzolkos avatar mbuckley avatar waldrupm avatar liaden avatar trappar avatar spone avatar gauravtiwari avatar franzliedke avatar czj avatar bradparker avatar afomera avatar baygeldin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.