Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxious/alexandria

Alexandria - Basic Content Store API in node.js on postgres JSONB
https://github.com/maxious/alexandria

Last synced: about 2 months ago
JSON representation

Alexandria - Basic Content Store API in node.js on postgres JSONB

Awesome Lists containing this project

README

        

= 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 ===
- [x] Put
- [x] 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