Giter Club home page Giter Club logo

Comments (9)

simon-p-r avatar simon-p-r commented on July 3, 2024

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.

nelsonic avatar nelsonic commented on July 3, 2024

@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:
NPM

But only 11k downloads for glue ... that means fewer than _6% of hapi projects_ ...
NPM
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.

vdeturckheim avatar vdeturckheim commented on July 3, 2024

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.

nelsonic avatar nelsonic commented on July 3, 2024

@vdt can you share link to the personal project you are describing, or is it private?

from learn-hapi.

vdeturckheim avatar vdeturckheim commented on July 3, 2024

@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.

nelsonic avatar nelsonic commented on July 3, 2024

Ah... GitLab. fair enough.
if you can that would be sweet. thanks.

from learn-hapi.

vdeturckheim avatar vdeturckheim commented on July 3, 2024

I'll do my best ;) It's definitely on my bucket list.

from learn-hapi.

vdeturckheim avatar vdeturckheim commented on July 3, 2024

@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.

FullStackForger avatar FullStackForger commented on July 3, 2024

Great question @nelsonic! And thanks a lot for the code example @vdeturckheim.

from learn-hapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.