Closed hueniverse closed 10 years ago
"or another item from walmart.com of equal value." equals an XBOne or a PS4 also. :+1:
Looking forward to entries!!!!
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!
"The Pursuit of Hapi-ness" (introduction guide covering essential concepts) - https://medium.com/p/d82777afaa4b
@expr wow! that's a worthy entry! nicely done.
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!
New article on Confidence: http://vawks.com/blog/2014/03/18/hapi-confidence/
Mini article on Joi, though not in direct relation to Hapi: https://medium.com/the-spumko-suite/eb4ff19f6688
: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/
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 :)
@strathmeyer Your entry on Joi is a lot more comprehensive than mine either way ;)
Pretty hard to beat @expr , you did an excellent job! almost everything of Hapi is covered in your tutorial :)
@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
"Testing Hapi Services with Lab" - https://medium.com/the-spumko-suite/96ac463c490a
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.
Getting started tutorial — Hapi's cafe. https://medium.com/p/51e3d9bdac59 https://github.com/otodockal/hapi-tutorial
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.
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).
Sorry for the delay. We should have a winner announced next week.
Judging has started...
2 out of 3 judges submitted their decisions. Waiting on one more...
Thanks to our esteem panel of judges: @dshaw, @seldo, and @adambrault we have a winner:
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!
@expr email me at eran@hammer.io to get your prize.
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:
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).