Introducing friendly

rocketlaunchr.cloud
Mar 9 · 2 min read

I was creating a simple website locally. I tried to run the html file on Chrome only to encounter CORS (& related) issues. In my case, I had an embedded iframe that was calling parent to access the host site. All major browsers such as Chrome, Safari and Firefox were blocking the call.

In these scenarios, you need to run the site on a local web server instead of directly “opening” the html file. Most front-end developers would use a npm based package such as http-server or local-web-server. These are fine alternatives but they either don’t support https or they require you to provide your own ssl certificate obtained from elsewhere.

So I created FRiENDly in Go.

screenshot

For Professional Front End Developers, the zero-dependencies and frictionless simplicity may entice you to try it out. If there is sufficient demand, I’m willing to implement a few more features.

You can download it here: https://github.com/rocketlaunchr/friendly

For Go Developers

For Go Developers, the utility of the application is probably limited. But I’ve taken great care to make the code as clean and readable as possible — a great learning tool for beginners.

In my opinion Go is second-to-none in only two things: Command Line Applications (CLI) and Servers.

Beginners (& intermediates) can learn how to make:

  • a CLI application (using Cobra)
  • self-signed SSL certificates including a HTTPS web-server
  • a static file web-server that is a zero-setup superior alternative to what ever else you may use (Apache, NGINX…?)
  • Inject the git tag and git commit into the binary during the build phase.

Download

https://github.com/rocketlaunchr/friendly/releases

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade