Launch a website for free.

website.jpg

Being able to launch a website for free* is really easy these days.

I prefer writing vanilla HTML / JS / CSS. But to make my life a bit easier, I think I’ll be switching over to using Cactus.

Developing your site #

Launching your website #

When it comes to deploying your website for the world to enjoy, you have a couple of options.

Options #1: Use github pages. This is a great option for people who are comfortable using git. Basically make a gh-pages branch, and commit your website to that branch. It’s really easy, simply follow the instructions on the website. This option is great for having a simple blog, or hosting small documentations for your open-source projects.

Option #2: Use Surge. This is by far my favorite way. Have Node.js installed on your computer, and run the following command in terminal: npm install --global surge. Now, you should have access to the surge command. Simply cd into your website folder, and run surge. After entering in some basic account information, your website will be uploaded and hosted for free. Every time you make a change to your static website, simply re-run sruge. I’m using sruge right now to host my shahzeb.co website. What’s impressive is that even the images are hosted on surge.

coding.jpg

Getting a custom domain #

*Hosting is for free, but having your own domain will likely cost a little. Out of all the domain services I’ve used, namecheap is the easiest to deal with. (You can find rad coupons for namecheap here). After you have gotten your custom domain, you can follow these instructions to change the host files for github-pages and for surge.

Support this blog by checking out namecheap.

I hope you found these tips helpful.

 
8
Kudos
 
8
Kudos

Now read this

Contentful integration for Rails

The following is a tutorial on how to easily integrate Contentful into a Ruby on Rails application. The following blog post assumes that you have created a Content Model inside of Contentful and added some pieces of content. Installation... Continue →