Skip to content

Commit b9b20d5

Browse files
authored
Merge pull request #274 from geoblacklight/v5-docs
v5 quickstart docs
2 parents e7c4f86 + 2967380 commit b9b20d5

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

docs/docs/developers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ This page is for software developers looking to build GeoBlacklight from source,
1414
You should have the following installed before beginning:
1515

1616
<ul>
17-
<li>Ruby > 3.0.0</li>
18-
<li>Java > JRE version 11 or higher</li>
17+
<li>Ruby (check the minimum required version on <a href="https://rubygems.org/gems/geoblacklight">GeoBlacklight's rubygems page</a>)</li>
18+
<li><a href="https://docs.docker.com/get-started/get-docker/">Docker Desktop</a> for your operating system</li>
1919
</ul>
2020
---------
2121

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,47 @@
11
# GeoBlacklight Quick Start
2+
23
This guide covers the quickest way to get up and running with GeoBlacklight, including:
34

4-
- How to install GeoBlacklight on your local computer.
5-
- How to create a new application.
6-
- How to add and index geospatial content.
5+
- How to create a new application.
6+
- How to add and index geospatial content.
7+
8+
!!! warning "Required dependencies"
9+
Before getting started, make sure you have installed the [required dependencies listed on the Developers page](../developers#dependencies). You will also need the Ruby on Rails CLI installed for the `rails new` command:
10+
11+
```bash
12+
gem install rails
13+
```
714

8-
## Installation
15+
## Creating a new GeoBlacklight application
916

10-
Bootstrap a new GeoBlacklight Ruby on Rails application using the template script:
17+
Bootstrap a new GeoBlacklight application using the template script, replacing `app-name` with the name of your new application:
1118

1219
```bash
13-
DISABLE_SPRING=1 rails new app-name -m https://raw.githubusercontent.com/geoblacklight/geoblacklight/v4.4.1/template.rb
20+
rails new app-name -m https://raw.githubusercontent.com/geoblacklight/geoblacklight/main/template.rb -a propshaft --css bootstrap --js rollup
1421
```
15-
Then run the `geoblacklight:server` rake task to run the application:
22+
23+
Then run the `geoblacklight:server` rake task to run the application:
1624

1725
```bash
18-
$ cd app-name
19-
$ bundle exec rake geoblacklight:server
26+
cd app-name # replace with your app's name
27+
bundle exec rake geoblacklight:server
2028
```
2129

22-
* Visit your GeoBlacklight application at: [http://localhost:3000](http://localhost:3000)
23-
* Visit the Solr admin panel at: [http://localhost:8983/solr/#/blacklight-core](http://localhost:8983/solr/#/blacklight-core)
30+
- Visit your GeoBlacklight application at: [http://localhost:3000](http://localhost:3000)
31+
- Visit the Solr admin panel at: [http://localhost:8983/solr/#/blacklight-core](http://localhost:8983/solr/#/blacklight-core)
32+
33+
!!! info "Using importmaps for JavaScript"
34+
35+
The default GeoBlacklight template uses [Vite](https://vite-ruby.netlify.app/guide/rails.html) to bundle the application's JavaScript. If you would prefer to use Rails's default of [importmaps](https://github.com/rails/importmap-rails), you can set `--js importmap` when generating your application:
36+
37+
```bash
38+
rails new app-name -m https://raw.githubusercontent.com/geoblacklight/geoblacklight/main/template.rb -a propshaft --css bootstrap --js importmap
39+
```
2440

2541
## Index Example Data
2642

2743
With your Solr server and Rails server already running (via the `geoblacklight:server` rake task above), open a new terminal window and index the GeoBlacklight project's test fixtures via:
2844

2945
```bash
30-
$ bundle exec rake "geoblacklight:index:seed[:remote]"
46+
bundle exec rake "geoblacklight:index:seed[:remote]"
3147
```

0 commit comments

Comments
 (0)