= Alexandria - Basic Content Store API in node.js on postgres JSONB =
Why a content store? https://gdstechnology.blog.gov.uk/2014/08/27/taking-another-look-at-gov-uks-disaster-recovery/
=== Installing === npm install node db.js # to create/wipe database tables
=== Running ===
node app.js
curl http://localhost:3068/content/path-on-gov-uk -X PUT
-H 'Content-type: application/json; charset=utf-8'
-d @example-input.json
=== Testing === npm install -g mocha mocha -R nyan
=== Features ===
- Put
- Get
- Static Content Generation
- Routing and delivery of static content
- Indexing of static content in ElasticSearch
- Publish Intents https://github.com/alphagov/content-store/blob/master/doc/publish_intents.md
=== Roadmap === Content generation/indexing should be asyncronous, maybe seperate: throw in some https://github.com/JustinTulloss/zeromq.node for asynchronous queues as required Routing should be seperate: https://github.com/alphagov/router https://github.com/alphagov/router-api