11# Pulfalight
2+
23[ ![ CircleCI] ( https://circleci.com/gh/pulibrary/pulfalight.svg?style=svg )] ( https://circleci.com/gh/pulibrary/pulfalight )
34[ ![ Coverage] ( https://img.shields.io/badge/coverage-100%25-brightgreen )] ( https://github.com/pulibrary/pulfalight )
45[ ![ Apache 2.0 License] ( https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=plastic )] ( ./LICENSE )
56
67This is an implementation of ArcLight being implemented as a replacement for the
7- Princeton University Finding Aids (PULFA) service. Accessible at https://findingaids.princeton.edu/ .
8+ Princeton University Finding Aids (PULFA) service. Accessible at < https://findingaids.princeton.edu/ > .
9+
10+ ## Development
11+
12+ ### Setup
13+
14+ Supports ` asdf ` (existing) and ` devbox ` for local language/tooling setup
15+
16+ #### Option A: Devbox
17+
18+ 1 . Install Devbox
19+ 2 . Enter the devbox shell:
20+
21+ ``` sh
22+ devbox shell
23+ ```
824
9- ### Development
25+ 3 . Install dependencies:
1026
11- #### Setup
12- * Install Lando from https://github.com/lando/lando/releases (at least 3.0.0-rrc.2)
27+ ``` sh
28+ devbox run setup
29+ ```
30+
31+ Services (Solr + database) are still managed via Lando (see below). Once Lando is installed, you can start services with:
32+
33+ ``` sh
34+ devbox run servers:start
35+ ```
36+
37+ #### Option B: asdf
38+
39+ * Install Lando from < https://github.com/lando/lando/releases > (at least 3.0.0-rrc.2)
1340* See .tool-versions for language version requirements (ruby, nodejs)
1441* ` bin/setup_keys `
1542
@@ -18,10 +45,11 @@ asdf install
1845bundle install
1946yarn install
2047```
21- (Remember you'll need to run the above commands on an ongoing basis as dependencies are updated.)
2248
49+ (Remember you'll need to run the above commands on an ongoing basis as dependencies are updated.)
2350
2451#### Starting / stopping services
52+
2553We use lando to run services required for both test and development
2654environments.
2755
@@ -30,14 +58,17 @@ Start and initialize solr and database services with `rake servers:start`
3058To stop solr and database services: ` rake servers:stop ` or ` lando stop `
3159
3260#### Run tests
61+
3362` bundle exec rspec `
3463To watch feature tests run in a browser, make sure chrome is installed and run: ` RUN_IN_BROWSER=true rspec spec `
3564
3665#### Start development server
37- - ` rails s `
38- - Access Pulfalight at http://localhost:3000/
66+
67+ * ` rails s `
68+ * Access Pulfalight at < http://localhost:3000/ >
3969
4070### Configuration
71+
4172Please see [ the ArcLight
4273documentation] ( https://github.com/projectblacklight/arclight/wiki/Indexing-EAD-in-ArcLight#repository-configuration )
4374for information regarding the configuration of repositories in ArcLight.
@@ -46,12 +77,12 @@ for information regarding the configuration of repositories in ArcLight.
4677
4778#### Configuring ASpace
4879
49-
50801 . ` brew install lastpass-cli `
51812 . ` lpass login emailhere `
52823 . ` bundle exec rake setup_keys `
5383
5484#### Index "Interesting" EADs
85+
5586A sub-section of all our collections have been identified and can be queued up
5687 for ingest via:
5788
@@ -60,7 +91,8 @@ A sub-section of all our collections have been identified and can be queued up
6091#### Index a specific EAD
6192
6293In a rails console run the index job with a specific EAD, e.g.:
63- ```
94+
95+ ``` text
6496AspaceIndexJob.perform_later(resource_descriptions_uri: "repositories/4/resource_descriptions/2203", repository_id: "univarchives")
6597```
6698
@@ -88,7 +120,7 @@ Once the jobs are finished processing by sidekiq you'll need to either wait 5 mi
88120A subset of collections (the same that are run in specs) can be indexed into
89121 development via ` bundle exec rake pulfalight:seed `
90122
91- #### Adding new EADs to test suite.
123+ #### Adding new EADs to test suite
92124
931251 . Open up ` app/services/aspace_fixture_generator.rb `
941261 . Add EAD ID to the ` AspaceFixtureGenerator::EAD_IDS ` constant.
0 commit comments