SearchWorks

所属分类:Ruby编程
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2023-09-15 17:02:40
上 传 者sh-1993
说明:  SearchWorks(斯坦福大学图书馆),
(SearchWorks (Stanford University Libraries),)

文件列表:
.coveralls.yml (23, 2023-12-23)
.rubocop.yml (12644, 2023-12-23)
.rubocop_todo.yml (61102, 2023-12-23)
.solr_wrapper (147, 2023-12-23)
CHANGELOG.md (13388, 2023-12-23)
Capfile (1004, 2023-12-23)
Gemfile (3359, 2023-12-23)
Gemfile.lock (17642, 2023-12-23)
Jenkinsfile (9516, 2023-12-23)
Jenkinsfile-Folio-Update (943, 2023-12-23)
Jenkinsfile-Lane-Update (873, 2023-12-23)
LICENSE (603, 2023-12-23)
Rakefile (707, 2023-12-23)
app/ (0, 2023-12-23)
app/assets/ (0, 2023-12-23)
app/assets/config/ (0, 2023-12-23)
app/assets/config/manifest.js (115, 2023-12-23)
app/assets/fonts/ (0, 2023-12-23)
app/assets/fonts/DejaVuSans-ExtraLight-webfont.eot (110256, 2023-12-23)
app/assets/fonts/DejaVuSans-ExtraLight-webfont.svg (611200, 2023-12-23)
app/assets/fonts/DejaVuSans-ExtraLight-webfont.ttf (365936, 2023-12-23)
app/assets/fonts/DejaVuSans-ExtraLight-webfont.woff (156536, 2023-12-23)
app/assets/fonts/bootstrap-icons.woff (120468, 2023-12-23)
app/assets/fonts/bootstrap-icons.woff2 (90528, 2023-12-23)
app/assets/fonts/sul-icon_60df2eb076c5383b3f69816f13986e67.eot (10844, 2023-12-23)
app/assets/fonts/sul-icon_60df2eb076c5383b3f69816f13986e67.svg (47166, 2023-12-23)
app/assets/fonts/sul-icon_60df2eb076c5383b3f69816f13986e67.ttf (10672, 2023-12-23)
app/assets/fonts/sul-icon_60df2eb076c5383b3f69816f13986e67.woff (6332, 2023-12-23)
app/assets/images/ (0, 2023-12-23)
app/assets/images/.keep (0, 2023-12-23)
app/assets/images/ARS.jpg (15528, 2023-12-23)
app/assets/images/ARS@2x.jpg (6697, 2023-12-23)
app/assets/images/ART.jpg (15723, 2023-12-23)
app/assets/images/ART@2x.jpg (6341, 2023-12-23)
... ...

![Build Status](https://github.com/sul-dlss/SearchWorks/workflows/CI/badge.svg) | [![Code Climate](https://codeclimate.com/github/sul-dlss/SearchWorks/badges/gpa.svg)](https://codeclimate.com/github/sul-dlss/SearchWorks) | [![Code Climate Test Coverage](https://codeclimate.com/github/sul-dlss/SearchWorks/badges/coverage.svg)](https://codeclimate.com/github/sul-dlss/SearchWorks/coverage) # SearchWorks The Stanford library searchable catalog. ## Local Installation You'll need common dependencies for building rails applications such as a javascript runtime (e.g. v8). If you don't want to have the mysql gem installed for local development you can run the bundle install command below with the `--without production deployment` flag After cloning the repository $ bundle install $ rake searchworks:install The installation script will 1. Migrate the database You will need to update the configuration in `config/settings.yml` for various parts of the app to work. Please check that file for more information. Start Solr To start Solr, you can use the `solr_wrapper` command. However, if starting from a fresh instance, you may first need to run `rake searchworks:install` or `rake ci` so that the CJK tokenizer gets copied into the appropriate directory. There is also a separate task (`rake searchworks:copy_solr_dependencies`) available if you find that you need to clean solr and the CJK tokenizer is getting removed. $ solr_wrapper Start the rails app $ rails s ## Getting data in development For fixture data, you can run `solr_wrapper` locally as above, and populate sample data using `rake searchworks:fixtures` ## "Logging in" as a User in development Given that this app is using shibboleth + devise for login, it can be tricky to get a user context set. The user itself can be set by starting rails with a `REMOTE_USER` env var set (e.g. `REMOTE_USER=jstanford rails s`). If you need to set your affiliation attribute (e.g. `stanford:staff`) for things like testing article search, you can start rails with a `suAffiliation` env var set (e.g. `REMOTE_USER=jstanford suAffiliation=stanford:staff rails s`). One caveat to this is that you may still need to go through the login path `/sso/login` in order to ensure proper session setup (e.g. eds guest flag set). ## Testing There is one testing task: `rake ci` #### ci This is intended for running tests against the fixtures in the local index. $ rake ci

近期下载者

相关文件


收藏者