hapi icon indicating copy to clipboard operation
hapi copied to clipboard

Getting Started Tutorial Contest - Win an iPad Air

Open hueniverse opened this issue 12 years ago • 23 comments

Hello fellow hapi travelers!

We share your frustration about the lack of awesome developer website for hapi.js. The old site was all about v1.x and was taken down for causing too much confusion. We have started working on a brand new developer site with our friends at &yet. We hope to have something to show you around May.

Meanwhile, to get some awesome hapi.js tutorials out there using v3.0, we are having a little contest. We are looking for the best Getting Started with hapi.js Tutorial. It can be a gist, a blog post, a new issue, an npm module, or whatever. It may contain videos but should be as helpful without them.

The rules are simple:

  1. Submit your tutorial by commenting on this thread by April 1st noon PT with a link.
  2. You can post your tutorial link as early as you want and keep changing the content until the deadline.
  3. You can submit as many tutorials as you want, each counting as one submission.
  4. A panel of judges will review the submissions and a winner will be announced by April 10th.

The winner will receive an Apple iPad Air 16Gb WiFi or another item from walmart.com of equal value.

Got questions? Post a comment!

Walmart and &yet employees cannot participate. Open to anyone in any country (as long as we can legally ship to you from the US and you take full responsibility for any local taxes charged).

hueniverse avatar Mar 13 '14 19:03 hueniverse

"or another item from walmart.com of equal value." equals an XBOne or a PS4 also. :+1:

Looking forward to entries!!!!

nvcexploder avatar Mar 13 '14 20:03 nvcexploder

Thats a cool thing! Im loving hapi.js and hoping I can collaborate with the community. We are building our new API based on hapi and certainly going to create a tutorial for starters!

paulillo avatar Mar 14 '14 01:03 paulillo

"The Pursuit of Hapi-ness" (introduction guide covering essential concepts) - https://medium.com/p/d82777afaa4b

oceileachair avatar Mar 16 '14 00:03 oceileachair

@expr wow! that's a worthy entry! nicely done.

hueniverse avatar Mar 16 '14 04:03 hueniverse

Wow! I did not know it about this, but luckily some days ago I wrote: http://facundis.tumblr.com/post/77023091474/market-survey-restful-api-demo-made-with-hapi-lunr

But, by far the one posted before is better. Hope to get a t-shirt or an sticker at least!

facundofarias avatar Mar 18 '14 20:03 facundofarias

http://vawks.com/blog/2014/03/15/caching-with-hapi/

strathmeyer avatar Mar 19 '14 02:03 strathmeyer

New article on Confidence: http://vawks.com/blog/2014/03/18/hapi-confidence/

strathmeyer avatar Mar 22 '14 20:03 strathmeyer

Mini article on Joi, though not in direct relation to Hapi: https://medium.com/the-spumko-suite/eb4ff19f6688

oceileachair avatar Mar 27 '14 21:03 oceileachair

:laughing: I swear I didn't know @expr was also working on a Joi article! http://vawks.com/blog/2014/03/22/the-joi-of-validation/

strathmeyer avatar Mar 28 '14 09:03 strathmeyer

My Entry: https://gist.github.com/thebillkidy/10a11fed1bf61d04c3c5

Still a work in progress :) but creating a tutorial on how to get started on creating a Hapi server with a BDD approach. It will also include custom authentication plugin :)

XavierGeerinck avatar Mar 28 '14 11:03 XavierGeerinck

@strathmeyer Your entry on Joi is a lot more comprehensive than mine either way ;)

oceileachair avatar Mar 28 '14 16:03 oceileachair

Pretty hard to beat @expr , you did an excellent job! almost everything of Hapi is covered in your tutorial :)

XavierGeerinck avatar Mar 28 '14 19:03 XavierGeerinck

@thebillkidy There are a few areas I didn't go into in very much depth as I felt they were unnecessary for a getting started guide, but I'm sure it's enough to get someone familiar with hapi. Somebody ended up spending almost two hours working through it :)

Here's something else I'm working on that could serve as a small, real example at some point. https://github.com/expr/markium

oceileachair avatar Mar 30 '14 00:03 oceileachair

"Testing Hapi Services with Lab" - https://medium.com/the-spumko-suite/96ac463c490a

oceileachair avatar Mar 30 '14 21:03 oceileachair

Cool tutorials, thanks a lot :)

But still I am curious: @expr @strathmeyer any ideas how to validate array of objects using joi? I mean something like this:

[{username: 'user1', age: 18}, {username: 'user2', age: 28}, ...]

Update: It can be validated using:

Joi.array().includes(Joi.object({
  username : Joi.string().required(),
  age : Joi.number().required(),
})).required()

This is really awesome. :) You can update the tutorials using this example.

petermilan avatar Mar 31 '14 11:03 petermilan

Getting started tutorial — Hapi's cafe. https://medium.com/p/51e3d9bdac59 https://github.com/otodockal/hapi-tutorial

otodockal avatar Apr 01 '14 03:04 otodockal

Here is my contribution: https://gist.github.com/agendor/9922151

I couldn't find anywhere a sample project API using hapi.js and consuming a MySQL database, so, we've decided to create our own and share it publicly. The above is a Gist Tutorial for the Sample hapi.js REST API project.

I hope this project can serve as a starting point for many other teams that find themselves at this same scenario.

paulillo avatar Apr 01 '14 20:04 paulillo

Since this hasn't been updated by anyone at Walmart Labs, keep in mind the deadline is up (has been for about an hour and a half).

oceileachair avatar Apr 01 '14 20:04 oceileachair

Sorry for the delay. We should have a winner announced next week.

hueniverse avatar Apr 08 '14 18:04 hueniverse

Judging has started...

hueniverse avatar Apr 19 '14 08:04 hueniverse