GithubHelp home page GithubHelp logo

trmccormick / dlp-curate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emory-libraries/dlp-curate

0.0 1.0 0.0 10.96 MB

Digital curation and preservation workbench for the Emory Preservation Repository.

JavaScript 2.07% Ruby 85.81% XSLT 1.64% CSS 0.08% HTML 10.16% SCSS 0.23%

dlp-curate's Introduction

DLP-Curate

A repository application for digital curators (preservation, rights and metadata management, collection management). Find more about the project on our DLP Wiki

CircleCI Test Coverage User Stories

Database Authentication

In a production environment, we will use Shibboleth for authentication. However, in a development environment we will be using a local database.

In order to set up your dev environment for database authentication, you will need to set the following environment variable:

export DATABASE_AUTH=true

Local Development Setup

Run each of the following commands in a separate tab within the dlp-curate directory:

  1. Setup local Solr instance by running command solr_wrapper
  2. Setup local Fedora instance by running command fcrepo_wrapper
  3. Setup local app server by running command rails server
  4. Access the app through http://localhost:3000/

Refer to the Hyrax local development guide for more information regarding installing additional tools like Fits and ImageMagick, which are needed to enable file uploads.

Testing and CI

To run the tests locally, run each of the following commands in a separate tab within the dlp-curate directory:

  1. Setup local Solr testing instance by running command solr_wrapper --config config/solr_wrapper_test.yml
  2. Setup local Fedora testing instance by running command fcrepo_wrapper --config config/fcrepo_wrapper_test.yml
  3. Run rspec and verify that all tests pass

A second option, which has not been working consistently for local testing, is running the test suite with bin/rails ci.

For our CI we are using CircleCI that we adopted from hyrax project: Hyrax CircleCI Config

Caching manifests with localhost

In a development environment, rake task creates and caches manifests with base_url as localhost:3000.

In order to run the rake task locally and see cached manifests properly, please use port 3000 with localhost.

dlp-curate's People

Contributors

bwatson78 avatar alexblr avatar rotated8 avatar bess avatar little9 avatar dependabot[bot] avatar wulman16 avatar mark-dce avatar devanshu-m avatar maxkadel avatar solomonhd avatar abelemlih avatar eporter23 avatar mlooney avatar fnibbit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.