hapipal / discuss

The hapi pal discussion board
3 stars 0 forks source link

Request: guidelines/tutorial #1

Closed ozum closed 6 years ago

ozum commented 6 years ago

Hi,

Thank you for hapipal. I read README and API docs of several hapipal repos. Although I like the idea of freedom provided by hapi very much, it is good to have organization practices like haute-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:

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,

devinivy commented 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 🙂

ozum commented 6 years ago

Thanks, that's great.

YoannMa commented 6 years ago

In mean time you could also check out this "boilerplate" https://github.com/mattboutet/user-pal

ozum commented 6 years ago

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

devinivy commented 6 years ago

The link is now up (see the top navigation on https://hapipal.com), with some recent adjustments to the tutorial.

ozum commented 6 years ago

Kudos to article author, clean, nice and covering article.

devinivy commented 6 years ago

That would be @zemccartney :)

zemccartney commented 6 years ago

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 🙏

ozum commented 6 years ago

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.