To continue down my path of solving the worlds cross-origin resource sharing (CORS) problems, I wanted to adventure into Hapi, a Node.js framework that I’ve been heavily using lately. If you’re not familiar with cross-origin resource sharing, it is something that frequently comes up when you try to use front-end JavaScript to access content from another host or port.
Previously I had written about exploring CORS in an Express with Node.js application. While Express is probably the most popular framework, it certainly isn’t the only framework, which is why we’re going to take a look at CORS in Hapi.
Read MoreWhen getting started with a new development technology or framework, a basic todo list style application is often in the examples used for learning. It makes a great example because todo lists often make use of a variety of things such as forms, loops, and other binding events, all while remaining short and easy.
We’re going to see how to create a very basic todo list that demonstrates components, form binding, loops, and click events, using the Vue.js JavaScript framework.
Read MoreA few weeks ago I had written about creating routes and navigating a Vue.js web application. It was a basic example of getting around in an application.
Often, when building navigation into your application, you’ll find that you need to pass data from one screen to another. For example, maybe you’re following the master-detail pattern where you have a list of data and you get more information about a particular item in the list by drilling deeper.
We’re going to see how to pass data between routes in a Vue.js web application using a router and URL parameters as well as query parameters.
Read MoreNot too long ago I wrote a tutorial titled, Use Social Media Sharing Prompts in a NativeScript Angular Application, which demonstrated how to share content from the device. The sharing included locations like Facebook, Twitter, and anything else the platform found appropriate. This included SMS text messages.
Social sharing functionality isn’t the only way to access the messaging and dialing features of an Android and iOS device.
We’re going to see how to send SMS text messages in Android and iOS via an application built with NativeScript and Angular.
Read MoreIf you’ve been a long time subscriber to The Polyglot Developer, you’ll know that I use the blog as a way to document what I learn on a day to day basis. I’ll never remember what I did six months ago unless I document the steps to reproduce it later.
I’d like to think that I’m a developer first and a blogger or technical writer second. However, did you know that I’m earning money from both sides of this technical spectrum? I’m earning money from my day job as well as the blog.
We’re going see a few things that will get you started with earning money through a programming blog.
Read MoreIncluding map functionality in your mobile application is often a very important necessity, depending on the scenario. Maybe your application needs to do navigation, or simply just show locations on a map.
There are many different map providers, the most popular being Google Maps. However, Mapbox is picking up steam because of how easy it is to use and its pricing model.
We’re going to see how to include Mapbox in our NativeScript Android and iOS mobile application using Angular and TypeScript.
Read MoreWhen building a web application, I personally find file uploads to be the most complicated part of the job. For example, how do you accept the files, and what do you do with them after you’ve received them in the request?
Not too long ago I wrote about accepting file uploads in Node.js sent via Angular. In this example I was using Express and the Multer middleware. What if you’re interested in using one of the more modern Node.js frameworks instead of Express?
This time around we’re going to explore processing file uploads with Hapi and Node.js.
Read More