Closed ozum closed 6 years ago
Hey there. We also see the need for a tutorial that helps illustrate the "whole picture" (as you said), especially given that hapi pal is so modular and leans on other ecosystems/libraries to do what they do best. I think different folks will be interested in different tutorial contents depending on what they're trying to build and what familiarity they already have with hapijs.
That said, we actually have decided on some baseline functionality, and wrote a tutorial around it! It hasn't been linked on the site yet, but it can be found here: https://hapipal.com/getting-started. It is a step-by-step guide to build this API for serving riddles, backed by a SQL database, and it explains lots of the hapi pal tooling and the structure of the boilerplate. We're definitely open to feedback on it! But it covers use of haute-couture, glue, schwifty, and swagger using the pal boilerplate, so it sounds very similar to what you're looking for. I could imagine a "part two" that goes into implementing something like auth—but really, once you get the hang of pal, then you should be able to apply existing knowledge about hapijs auth that's already out there! At least that's our goal 🙂
Thanks, that's great.
In mean time you could also check out this "boilerplate" https://github.com/mattboutet/user-pal
@devinivy, I read "Getting Started" and it is a great article and covers most of the points I suggested. I'm eager to see it's link put on the web site.
@YoannMa, thanks, I'll skimmed your boilerplate, seems very useful. I will try it.
The link is now up (see the top navigation on https://hapipal.com), with some recent adjustments to the tutorial.
Kudos to article author, clean, nice and covering article.
That would be @zemccartney :)
glad it was helpful, @ozum
and @devinivy 's of course underselling himself here; he also shouldered a chunk of the work on that piece :)
thanks for checking things out and for the suggestions 🙏
I'm playing with hpal right now, thanks to @zemccartney's article.
Also @devinivy gave me a thoughtful answer previously here. At that time I'm unaware of haute-couture
and schwifty
and trying to build my hapi code organization. While reading best practices, one article's tone reminded me that answer. I went back and checked the answer, and realized he answered it.
If it wasn't lack of my attention, I think you should consider to promote hapi pal more aggressively.
Hi,
Thank you for
hapipal
. I read README and API docs of several hapipal repos. Although I like the idea of freedom provided byhapi
very much, it is good to have organization practices likehaute-couture
in case needed, which I definitely need and prefer some collaborative effort instead of my own.I'm trying to use hapipal modules/repos, but it is not easy to swallow whole picture together.
Could you please add some guidelines or tutorial besides "Best Practices" in hapipal.com.
Particularly a tutorial covering topics below:
haute-couture
,schwifty
, swagger and hapipal boilerplate can be used together and relation between them (i.e. what file goes where and does what?)haute-couture
andglue
together like in hapipal boilerplate.I'm aware that it is a daunting task to cover those in a tutorial, but I think it helps people starting to use
hapipal
.Kind regards,