hapijs / hapi

The Simple, Secure Framework Developers Trust
https://hapi.dev
Other
14.63k stars 1.34k forks source link

Getting Started Tutorial Contest - Win an iPad Air #1489

Closed hueniverse closed 10 years ago

hueniverse commented 10 years ago

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

nvcexploder commented 10 years ago

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

Looking forward to entries!!!!

paulillo commented 10 years ago

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!

osslate commented 10 years ago

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

hueniverse commented 10 years ago

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

facundofarias commented 10 years ago

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!

strathmeyer commented 10 years ago

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

strathmeyer commented 10 years ago

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

osslate commented 10 years ago

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

strathmeyer commented 10 years ago

: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/

XavierGeerinck commented 10 years ago

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 :)

osslate commented 10 years ago

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

XavierGeerinck commented 10 years ago

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

osslate commented 10 years ago

@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

osslate commented 10 years ago

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

petermilan commented 10 years ago

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.

otodockal commented 10 years ago

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

paulillo commented 10 years ago

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.

osslate commented 10 years ago

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

hueniverse commented 10 years ago

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

hueniverse commented 10 years ago

Judging has started...

hueniverse commented 10 years ago

2 out of 3 judges submitted their decisions. Waiting on one more...

hueniverse commented 10 years ago

Thanks to our esteem panel of judges: @dshaw, @seldo, and @adambrault we have a winner:

The Pursuit of Hapi-ness

Thank you so much for everyone for your thoughtful and impressive submissions. This was so much fun, we'll do more of these soon.

Congratulations to @expr for his winning submission!

hueniverse commented 10 years ago

@expr email me at eran@hammer.io to get your prize.