When building a modern web application, being able to navigate between pages is a necessity. Not to mention it is very important to be able to do so easily. To make this possible, frameworks such as Angular, React, and Vue use what’s known as a router and a set of routes. Each possible point of navigation, or page, is a route with its own configuration.
We’re going to see how to configure a set of routes and navigate between them using Vue.js and the vue-router library.
Read MoreProper cross-origin resource sharing (CORS) configuration is one of those things that is completely necessary when building a RESTful API, but also one of those things that is a total pain in the butt when it comes to prototyping an application. CORS related errors are common when testing a web application where the front-end JavaScript layer exists on a different port or host than the API that it tries to access.
Previously I had written about configuring cross-origin resource sharing via a Golang RESTful API, but this time we’re going to explore the same using Node.js and Express Framework.
Read MoreAs many of you know, I’ve been trying to expand the brand for The Polyglot Developer. I’ve redesigned the site, printed shirts, and even started creating stickers.
I’ve been printing circular stickers with Sticker Mule, and one thing that had been a real challenge is adding circular or curved text to them. It is nice to have the brand logo on the stickers, but until developers know what the logo is, it helps to have a website link as well.
This lead me to Affinity Designer, the much cheaper alternative to Adobe Illustrator, and the more polished alternative to Inkscape. We’re going to see how to create some nice images with curved text in Affinity Designer.
Read MoreIf you’ve ever spent time building RESTful APIs, you’ve probably come across cross-origin resource sharing (CORS) issues at some time or another. Often clients will receive errors when trying to interact with an API from a domain or port different from the actual API. Back in the day I had written a hacky article on getting past these CORS issues by manipulating the browser settings. However, it is best to tackle these issues at the source.
We’re going to see how to change the cross-origin resource sharing configuration in a Golang web application that uses the mux package.
Read MoreWhen building a modern web application, chances are that you’ll need to consume data from some remote resource, whether it be one that you’ve built or something someone else built. Sending HTTP requests is one of the more popular ways to send data from client facing applications to RESTful API backends.
We’re going to see how to send HTTP requests within a Vue.js web application, using a variety of techniques such as those found in the popular axios and vue-resource libraries.
Read MoreMost, not all, Android and iOS applications follow a similar set of rules when it comes to user experience. For example, many applications make use of what can be referred to as a hamburger menu in the top left or right hand side of the screen. These hamburger menus look like three horizontal lines and are useful for bringing up some sort of menu, typically from either of the sides of the screen.
We’re going to see how to make use of the hamburger menu in a NativeScript with Angular mobile application.
Read MoreAs you may remember, I recently released The Polyglot Developer 2.0 which was a migration from WordPress to Hugo. Because my WordPress permalinks matched a similar format to Hugo I didn’t have to make too many changes. However, there was an issue with the category
and tag
taxonomies. In Hugo these were recommended to be plural, while in WordPress they were singular.
I’m currently using Apache for hosting The Polyglot Developer so I had to figure out how to redirect the previous WordPress traffic to prevent bad links which would hurt the search engine optimization (SEO) of my blog. We’re going to see how I made such redirects happen.
Read More