Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.
/ dart-prototype Public archive

Working prototype of the DART application for bagging and shipping files. (No longer maintained, see https://github.com/APTrust/dart for new version)

License

Notifications You must be signed in to change notification settings

APTrust/dart-prototype

Repository files navigation

APTrust DART-Prototype

Build Status Build status Maintainability

DART is the Digital Artefact Routing Tool. It provides a simple way of packing and shipping BagIt files, easing the process of creating Submission Information Packages (SIPs) and getting them into a digital repository.

While early versions of the tool support BagIt as the SIP format and S3 as the upload protocol, DART is built on a plugin architecture that will allow developers to contribute modules for other packaging formats (zip, rar, parchive, etc.) and other network protocols (ftp, sftp, etc.).

APTrust depositors have been using early versions of DART to push materials into APTrust's production repository since March of 2018.

The code in the master branch of this project represents a working prototype. It does its job, but it is not maintainable. (It's always a bad sign when the person who wrote the code no longer understands it.)

New code intended for long-term maintainability is in the main DART repository That rewrite will clean up the code to a point where others can contribute. The refactor will:

  • properly separate concerns
  • include full JSDoc documentation
  • include Jest automated testing

Once DART is stable, we expect other organizations to adapt it for a variety of use cases, including sending digital artefacts from producers to preservationists within the organization. (For example, researchers can bag and send data to the library across campus.)

For more info, see the Current Status and Roadmap

Installer

See the installer page if you want to install DART without setting up the whole development environment.

Screenshots

DART has a five-step process for packing and shipping bags.

  1. Drag and drop the files and folders you want to bag.

Drag and drop files

  1. Choose your packaging format. DART supports APTrust and DPN BagIt profiles out of the box, and you can easily define new formats to suit your organization's needs.

Choose your packaging

  1. Add the metadata you want to save with your bag. DART lets you define default values, so you don't have to repeatedly enter common data for each bag.

Add your metadata

  1. Choose a location to deliver your bags. The software can currently upload to any S3-compatible service, and will add other protocols life FTP in the future.

Choose a storage location

  1. Review and run your job. DART will package and validate the bag, then copy it to the remote location.

Review and run

You can define multiple BagIt formats, default metadata values, and multiple storage backends through a simple UI.

The underlying bagging software can be scripted using Ruby, Python, JavaScript, PHP, or any other language that can generate JSON and call external programs.

DART is open source and its service layer is composed of plugins, making it easy to add support for new packaging formats (tar, zip, rar, etc.) and network protocols (ftp, sftp, rsync, etc.).

DART is built on Electron and can run on Windows, Mac, and Linux. We are nearing a beta release in early 2018.

Goals

This project aims to provide the following:

Bagging

  • Configurable bag creation and validation through the use of BagIt profiles.
  • Stand-alone tools for building and validating bags that require no external libraries. Each tool is a stand-alone executable binary.
  • Multi-platform support, including Linux, Mac, and Windows.
  • A simple, scriptable command-line interface.
  • A simple, intuitive UI for drag-and-drop bagging.
  • Reasonable peformance, even when creating and validating large bags that include tens of thousands of files.

Shipping

  • A simple UI for sending bags (or other files) to remote storage. The initial focus will be on object stores that support an S3-compliant API.
  • Simple command-line tools for storing objects.

Workflows

  • An intuitive UI to define workflows that describe how items should be bagged and where they should be shipped.
  • The ability to push items through a workflow from the UI, or via scripting.

Running the UI on Your Dev Machine

  1. Install the latest Node.js, which includes npm, the Node Package Manager.
  2. Install Electron using a Mac or Windows installer, or if you're running linux, install electron using npm.
  3. Clone this repository, if you haven't already.
  4. At the command line, cd into this repository's top-level directory
  5. Run the script electron/run.rb.

APTrust BagIt

This is the APTrust library for creating and validating bags that conform to explicit BagIt profiles. The profiles are similar to those in the bagit-profiles project at https://github.com/ruebot/bagit-profiles. The major difference between these profiles and ruebot's is that these provide broader support for required tags in specific tag files other than bag-info.txt.

Current Status and Roadmap (Updated November 20, 2018)

New APTrust depositors have been using prototype versions of DART to push materials into our production repositories. The following features are working in the prototype version:

  1. Creating bags that conform to the APTrust BagIt spec by simply dragging and dropping files.
  2. Uploading bags to APTrust's S3 receiving buckets.

Immediate items on the roadmap, in order of importance:

  1. Code cleanup and refactoring. The existing code is messy and does not adequately separate concerns. Model classes should be separate from forms, and UI code should be separate from models and forms. Cleanup and refactoring will give us a stable codebase that others can contribute to. [This work is already underway in the refactor branch.]
  2. Formal unit and integration tests. This depends on completion of #1 above. This is underway in the refactor branch. [This work is already underway in the refactor branch. We're using Jest for unit testing.]
  3. Command line tools for bagging, bag validation, uploading files and running jobs. Users should be able to call command line tools from the language of their choice (Python, Ruby, PHP, etc.) to automate the processes of creating, validating, and uploading bags. [This work is already underway in the refactor branch. The bag validator is the first of the command-line tools to be up and running.]
  4. Integration with APTrust's REST API. At the moment, this requirement has higher priority than formal testing because users need to see the full outcome of the pack-ship-ingest process. This is partially implemented in the existing releases as of April, 2018, but will be better implemented in the refactor. [Not yet started in the refactor branch.]

Additional tasks, in no particular order:

  • Add workflows, so a user can say, "These are the files, here's the essential bag metadata, now pack it and ship it in the usual way." [Not started.]
  • Formalize plugin interfaces, so other developers can contribute plugins. [Already underway in the refactor branch.]
  • Finish automated build, deployment, and auto-updating features, so the app can keep itself up to date without user intervention. Automated build and deployment are done, as of August 2018.
  • Separate the JavaScript and Go code into distinct repositories. The current builds don't use the Go code at all. [Not started. Coming soon.]

About

Working prototype of the DART application for bagging and shipping files. (No longer maintained, see https://github.com/APTrust/dart for new version)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •