Skip to content

Latest commit

 

History

History
99 lines (67 loc) · 3.19 KB

README.md

File metadata and controls

99 lines (67 loc) · 3.19 KB

Open Access (OA) Waiver

CircleCI Coverage Status Ruby 3.2.3 Node.js 18.17.0

The Open Access (OA) Waiver service provides faculty and researchers with the ability to submit and manage access to publications managed by the Scholarly Communications Office. Currently, Princeton aims to ensure that all published scholarly articles are released under the Open Access Policy, and as such, are available to the general public. This service ensures that faculty and researchers may submit waivers which may restrict access to any articles which may be (or have been) released as Open Access articles.

Development

Dependencies Setup

  • ruby 3.2.3
  • node.js 18.17.0

Please install Gem dependencies with the following:

$ bundle install

Please install NPM dependencies with the following:

$ yarn install

Start and initialize database services with rake servers:start

To stop database services: rake servers:stop or lando stop

Running the Application

$ bundle exec foreman start

Then, please access the application using http://localhost:3000/

Running the Test Suites

$ bundle exec rake db:setup

Deployment

In order to deploy the Rails app. to the staging environment, please invoke:

$ bundle exec cap staging deploy

To create a tagged release use the steps in the RDSS handbook

Staging Mail

Please note that mail will not be delivered on the stagig server. This is expected behavior.

Administration

Solr Indexing

In order to reindex the data models into the Solr Collection, please invoke the following:

$ bundle exec rake oawaiver:solr:reindex

For reindexing on the remote server environments, please invoke:

$ bundle exec cap $RAILS_ENV oawaiver:solr:reindex

Managing Roles for User Accounts

Local Deployments

For adding administrative privileges, please use the following:

$ bundle exec rake oawaiver:accounts:add_admin_role[$NET_ID]

For removing administrative privileges, please invoke:

$ bundle exec rake oawaiver:accounts:remove_admin_role[$NET_ID]

Remote Deployments

$ bundle exec cap staging oawaiver:accounts:add_admin_role[$NET_ID]
$ bundle exec cap staging oawaiver:accounts:remove_admin_role[$NET_ID]