Archive Pledge Posts (Developer Guide)

This is a developer guide listing the steps to archive the Te Wiki pledge posts to AWS.

Background

After Te Wiki the pledge blog posts are archived from Nationbuilder to AWS.

This has a number of advantages:

Developer Archive Steps

#1. Export pledge posts as JSON

We archive the pledge posts as raw JSON in case the posts ever need to be recreated in Nationbuilder or used elsewhere.

2. Export pledges as raw HTML

Page loads are much faster if we also archive the raw pledge HTML and then reload it directly into the page (rather than rehydrating each pledge from the JSON on page load).

3. Upload the JSON and HTML Exports to AWS S3

4. Switch the Pledge Grid from loading Blog Posts to loading HTML from AWS

5. Delete the original pledge blog posts from Nationbuilder