sane api with hapi
A robust sane api application bolierplate in Node with Hapi framework. That is the idea anyway.
-
configApp configurations -
docsApi documentation document -
libApplication logicindex.js- Defines the serverstart.js- Starts the serverresources- Resource modulesindex.js- Defines the resource class, link resources to the server.
auth- Authentication plugin for clientsindex.js- A wrapper to a plugin or series of plugins and schemas for authenticationclient.js- A siulates connection to client module.
utils- Utils to make code more clean an testableplugins- Other plugins for the appmodels- Data modules, to work with resourcesmanifest.js: Some server configurations.
-
testTestsvise- Put together files to make testing easyroutes- Tests for routesutils- Tests for utilsplugins- Tests for pluginsserver.js- Tests for the serverauth.js- Tests authentication.foo.js- Dummy file to test lsdir
-
gulpfile.js- Defining tasks for automations. Preferebly one should runnpm run watchwhile writing code. -
.travis.yml- Travis CI -
package.json,.gitignoreYou know what these are 😉! -
LICENCEcurrent licence
Adopting the conventions by hapi
Getting inspirations from github API
More [...]
Writting code for clarity and striving for 100% code coverage through out.
Got some inspiration for better things or stuff doesn't work, open an issue , and let's work on it.
Contributions are highly welcome. Fork the repo, make pull requests.