Comments (9)
Makes it easier to compose a comprehensive server with multiple connections and numerous plugins. It also exposes access to the server creation life cycle via pre connections and the pre plugins methods.
from learn-hapi.
@simon-p-r right, but how many people/teams/projects deploying hapi
Apps/APIs are actually _using_ glue
...?
I'm happy to write up a section on glue
but would like to gauge how popular its likely to be...
There were 190k downloads of hapi
in the past month:
But only 11k downloads for glue
... that means fewer than _6% of hapi projects_ ...
I'm actually a big fan of the declarative style of defining an application in a manifest.json
file.
But I'm not a fan of forcing beginners to learn _another_ thing before they can contribute to a project or be productive in their work.
Hence my question: who is _using_ glue
...?
from learn-hapi.
I make a large use of glue
in one of my personal project right now. My back-end app is organized in small components (managed through npm
) such as 'auth', 'team and private messaging', 'db management', ...
My final server is actually only composed of a manifest.json
and a package.json
. I compose it with rejoice
and that's all.
I also use glue in each module to forge a server as I need it for testing purpose.
However I do agree it is not a necessary tool for beginners, except, maybe, to promote the idea of composing a hapi server as a collection of, as independents as possible, modules.
At the end of the day glue
is just a way to assemble the pieces of a bigger construction in a clearer way than through coding it together (link may die when branch v3
is merged in master
in glue
repo)
from learn-hapi.
@vdt can you share link to the personal project you are describing, or is it private?
from learn-hapi.
@nelsonic it is actually private (gitlab.com + npm private plan) :/ I'll try to provide examples this week-end in a github repo.
from learn-hapi.
Ah... GitLab. fair enough.
if you can that would be sweet. thanks.
from learn-hapi.
I'll do my best ;) It's definitely on my bucket list.
from learn-hapi.
@nelsonic You can take a look at sticky and its plugins. Let me know if you have any comments or questions regarding this.
from learn-hapi.
Great question @nelsonic! And thanks a lot for the code example @vdeturckheim.
from learn-hapi.
Related Issues (20)
- tidy up "badges" in readme?
- Hapi Pal - a bunch of Hapi plugins and tools all glommed together
- An in-range update of lab is breaking the build 🚨 HOT 3
- Ressource: hapipal.com HOT 3
- An in-range update of joi is breaking the build 🚨 HOT 15
- My application is 2 way SSL enabled but I want a single route in the app to be 1 way SSL HOT 1
- An in-range update of code is breaking the build 🚨 HOT 4
- An in-range update of handlebars is breaking the build 🚨 HOT 3
- An in-range update of socket.io is breaking the build 🚨 HOT 1
- Not able to register plugin in Hapi HOT 2
- Not able to register plugin in Hapi
- Cited video found irrelevant HOT 1
- broken HitCount
- update readme links
- update links HOT 1
- Add CONTRIBUTING.md File to Repo
- Handling File Uploads with Hapi.js HOT 2
- Update version of Hapi to latest
- Update tutorial to hapi v17 HOT 6
- Add temporary banner to note that this tutorial is not yet hapi v17? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-hapi.