Gatsby will fail to build if you refer to window, so we need a work around.
Continue reading “Gatsby window scroll position”Gatsby ‘window.location’ not available during SSR
The location parameter works via ‘gatsby develop’, but fails to compile via ‘gatsby build’.
Continue reading “Gatsby ‘window.location’ not available during SSR”Install NodeJS and NPM on a shared web server
NodeJS can be installed on you CPanel shared hosting plans, keep reading to see how.
Continue reading “Install NodeJS and NPM on a shared web server”Global JSON data service in Angular
A simple method for loading and sharing JSON data across an Angular app using a shared service.
Continue reading “Global JSON data service in Angular”Load JSON data in Angular
Error: “Cannot find module ‘./path/to/data.json’. Consider using ‘–resolveJsonModule’ to import module with ‘.json’ extension”
Continue reading “Load JSON data in Angular”Redirect URL With GatsbyJS and Netlify
Bulk URL redirecting that resembles the .htaccess method used for Apache.
Continue reading “Redirect URL With GatsbyJS and Netlify”Dynamic routing, navigation and page title with Vue
How to create a reusable header component, containing a dynamic page title and sub-menu.
Continue reading “Dynamic routing, navigation and page title with Vue”CORS: Cross Origin Resource Sharing in Node.js
When attempting to access an API backend you will receive a CORS error if the appropriate headers aren’t configured on the http responses.
Continue reading “CORS: Cross Origin Resource Sharing in Node.js”Using Axios in Vue to consume a JSON API from a URL
This article provides a quick and easy approach for consuming API data in Vue using Axios.
Continue reading “Using Axios in Vue to consume a JSON API from a URL”Connect to MongoDB using Mongoose with Node.JS
I’ll show the method I use to connect to a mongo database, served local or from the cloud.
Continue reading “Connect to MongoDB using Mongoose with Node.JS”