sane api with hapi
A robust sane api application bolierplate in Node with Hapi framework. That is the idea anyway.
-
config
App configurations -
docs
Api documentation document -
lib
Application 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.
-
test
Testsvise
- 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 watch
while writing code. -
.travis.yml
- Travis CI -
package.json
,.gitignore
You know what these are ๐! -
LICENCE
current 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.