Skip to content

Instantly share code, notes, and snippets.

@dpaez
Last active March 3, 2016 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpaez/1e11b9b4af9ad58ef5db to your computer and use it in GitHub Desktop.
Save dpaez/1e11b9b4af9ad58ef5db to your computer and use it in GitHub Desktop.
HapiJS Server Structure
// HapiJS server directory layout
└── server
├── config // Confidence config
├── index.js // Server entry point
├── methods // Server methods
├── plugins // All your plugins
├── routes // All your routes and pre's
│ └── route
│ ├── pre // route pre-requisites
│ ├── index.js // route config
│ └── handler // route handler
└── views // HTML views, using your favourite template engine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment