Hi, everyone! On the previous week, I created a simple course about how to create a weather telegram bot using the NodeJs and Firebase Cloud Functions.
When I have free time, I like to create different side-projects or test my ideas. Since 2016 I’m using DigitalOcean as a cheap solution to host my projects. I created an instance per project and paid 5$/month for each of instances. It was until I found Dokku.
In Hapi, you can validate incoming data using the Joi plugin. It’s object schema language and provides a perfect mechanism to validate JavaScript objects. This plugin comes from Hapi infrastructure, so you don’t need to install any additional packages. You can create your own validation schemas, multiple and conditional schemas.