Skip to content

nypl-spacetime/dc-to-brick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital Collections to brick-by-brick

  1. Reads items & MODS data from Digital Collections, outputs brick-by-brick data
  2. Imports data into brick-by-brick database

dc-to-brick uses to-brick to write collections and items to the brick-by-brick database (local and remote),

Usage

npm install

node from-dc.js > data/items.ndjson
node to-brick.js

By default, dc-to-brick uses the following connection string to connect to PostgreSQL:

postgres://postgres:postgres@localhost:5432/brick-by-brick

To connect to a different database, use the -d command line argument:

node to-brick.js -d "postgres://user:password@host:port/database"

About

Digital Collections to brick-by-brick

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published