- Reads items & MODS data from Digital Collections, outputs brick-by-brick data
- 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),
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"