Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devinivy/wapid
Example of the web-api-db pattern built on hapi6 and the dogwater plugin. Serves Ren and Stimpy quotes.
https://github.com/devinivy/wapid
Last synced: 26 days ago
JSON representation
Example of the web-api-db pattern built on hapi6 and the dogwater plugin. Serves Ren and Stimpy quotes.
- Host: GitHub
- URL: https://github.com/devinivy/wapid
- Owner: devinivy
- Created: 2014-08-27T20:49:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T13:01:10.000Z (over 9 years ago)
- Last Synced: 2023-04-05T04:51:11.861Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
wapid
=====Example of the web-api-db pattern built on [hapi6](https://github.com/hapijs/hapi) and the [dogwater](https://github.com/devinivy/dogwater) plugin. Serves Ren and Stimpy quotes.
This is heavily inspired by the internal structure of [Postmile](https://github.com/hueniverse/postmile), which also uses hapi.
The meat of the application lives in three hapi plugins:
* `dogwater` integrates hapi with Waterline ORM. Data is manipulated solely through this plugin, available on npm.
* `arch-api` uses `dogwater` as an abstraction layer to manipulate data. `arch-api` is only aware of the global schema of the application, and isn't concerned with where particular pieces of data live.
* `arch-web` is responsible for the front-end interface. `arch-web` can only use `arch-api` to manipulate data, by calling out to it as a separate server.