Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyHutton committed Aug 18, 2022
1 parent 2493b51 commit 1e91b47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ And then execute:

## Development

This gem comes bundled with a test app to help you test out new display designs with pre-populated blazer queries. To get the environment up and running:
This gem comes bundled with a test app to help you test out new display designs with pre-populated blazer queries. To get the environment up and running:

1. Clone this repo down to your machine
2. Make sure you have [Dip](https://github.com/brandnewbox/bnb-dip-defaults) installed and configured
3. In your new `bnb_blazer` directory, run `docker-compose up`
4. Once all your containers have spun up, run `dip setup`
5. Navigate to http://localhost:300/blazer in your browser, and away you go!
3. Run `dip setup`
4. In your new `bnb_blazer` directory, run `docker-compose up`
5. Navigate to http://localhost:3000/blazer in your browser, and away you go!

For the work of actually overriding the gem, Rails will load any view that we have defined in the `app/views` (not `spec/dummy/app/views`) folder before looking for them in the blazer gem. So any view that we want to override or restyle you just have to create at the same location as it would be found in the blazer gem. E.g. the homepage view for blazer is found at `app/views/blazer/queries/home.html.erb`, so if we want to override what the homepage looks like in our gem then we create a new view at `app/views/blazer/queries/home.html.erb` and copy the existing HTML from the gem and make modifications as necessary.

Expand Down

0 comments on commit 1e91b47

Please sign in to comment.