About Andrew

Andrew Golightly is the lead web developer here at Golightly+. He is a passionate fullstack JavaScript developer. He also runs an Empath Community.

How to setup a Node.js server on DigitalOcean

Once your droplet is created and you've ssh'd in, it's time to set some things up.. I start off by installing nvm. You can find the command for the install script here. At the time of writing, I used curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash I needed to exit my terminal, and then ssh back in. [...]

By |2018-01-11T03:26:06+00:00January 10th, 2018|blog|0 Comments

How to setup Nginx for WordPress on DigitalOcean

I decided to switch from Apache to Nginx. I have a couple of WordPress sites on a DigitalOcean droplet, so I needed to reconfigure them to be used with Nginx. I basically followed this guide which was great for most of it, but I was still not getting the sites loading properly (404 errors, forbidden). [...]

By |2018-06-05T19:25:28+00:00January 4th, 2018|blog|1 Comment

How To Use jQuery To Post A CSV File To A Node.js Server

If you have a front-end that needs to accept a CSV file, upload it to a server using jQuery, and then have that Node.js server process that CSV file, then this a way to do it. First up, the HTML https://gist.github.com/magician11/94e7e900b9b390fb4a53b1d32cc38476#file-index-html and then the jQuery that takes the selected CSV file, and uploads it to [...]

By |2017-08-02T21:34:46+00:00August 2nd, 2017|gist|2 Comments

How To A Create A JSON API Wrapper For SOAP

I had a project where I needed to setup a server that communicated over the SOAP protocol. I use Node.js for my backend server, so I began looking for libraries to use to work with. I settled on strong-soap, but began to have issues with doing simple changes to the XML like editing the prefix [...]

By |2017-05-12T19:32:34+00:00May 12th, 2017|gist|3 Comments

How To Create Your Own Currency Conversion App

For a recent Shopify job, I had to update a variety of prices by converting them to a different currency. I found this great API from Fixr.io. It's super fast to use (response times in less than 7ms), and responses themselves are simple JSON objects. The exchange rates are updated almost every day from the [...]

By |2017-04-16T00:00:10+00:00April 15th, 2017|gist|0 Comments

How to add encryption (https) to your JavaScript application

I hadn't given too much thought to encrypting the traffic to my applications, until developing for 3rd party services like Facebook Messenger or using service workers require your server to use https. For a full stack JavaScript application we need to setup encrypt on both the front-end and the back-end. Front-End Encryption I'm serving my files (fonts, [...]

By |2016-12-15T04:50:16+00:00December 15th, 2016|blog|0 Comments

How to setup Google Analytics with React.js apps

If you have a single page app that has no routes, getting visitors tracked with Google Analytics is pretty straight forward using the React Google Analytics Module. First create your tracking ID from Google Analytics by going to https://analytics.google.com/ A howto guide is available here. Then in the parent component of your React.js app Install the [...]

By |2016-11-30T07:24:25+00:00November 30th, 2016|gist|6 Comments