Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maxious/alexandria
- Owner: maxious
- Created: 2016-01-10T06:51:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-31T08:04:17.000Z (almost 9 years ago)
- Last Synced: 2024-04-22T14:47:59.158Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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