Skip to content
This repository has been archived by the owner on Aug 10, 2018. It is now read-only.

ARCHIVED--Automate zip archive creation for Harvesting

Notifications You must be signed in to change notification settings

edgi-govdata-archiving/archivers-zip-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zip-Starter

A Starter-Server for harvesting

zip-starter is a single-route app that only accepts JSON POST requests. Its job is to create a "Starter" zip archive for adding data to, properlyconfigured according to the guide: https://github.com/datarefugephilly/workflow/tree/master/harvesting-toolkit#3-generate-html-json--directory

The archive derives it's name from the path posted to, or the "uuid" paremeter of the json document, favoring the json entry.

if a "url" key is specified in the json document, the server will fetch the document in question and write it to [name].html

Getting Started

  • make sure you have go installed.
  • in a terminal navigate to this directory & run go build, a binary called zip-starter will be created in this folder
  • run ./zip-starter from the terminal, a server will start
  • in another terminal try using curl to post to the server: curl -H "Content-Type: application/json" -d "{ \"uuid\" : \"test-zip-starter\", \"url\" : \"http://www.epa.gov\"}" http://localhost:3000 > test-zip-starter.zip

About

ARCHIVED--Automate zip archive creation for Harvesting

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages