How to Get Free Database-Driven CMS with Unlimited Hosting
Table of Contents:
- The Intro — Click Here for Article
- Setup Free Hosting and Domain
- Setup Database with Google Sheets — Click Here for Article
- Link Google Sheet Database to Website — Click Here for Article
- Add Javascript to Get Database Data to Loop — Click Here for Article
- Add Search Function to Website — Click Here for Article
- Add Non Php reliant Contact Form — Click Here for Article
Using the features of Github, you can get free and unlimited hosting. Github is normally a network where you share web related projects; however, you can easily use it to your benefit and host your website.
The first step is you need to sign up for an account. There are plans you can pay for, but here is a link to get a free account. https://github.com/join?source=pricing-page-new
The username you create will be part of your domain name, so choose a username carefully.
Once you create an account, you’ll need to create a repository.
The repository needs to be in this format: your-username.github.io.
If your username is hankquinian then your repository name needs to be hankquinian.github.io.
Make sure the initialize with Read Me is checked.
Repositories are the backbone to Github’s navigational structure. A repository is Github’s version of a folder.
Here’s the logic:
You’ll create a repository. This repository will be named after your username. This will make the repository act as your domain, so in a sense it will be your master folder. In this master folder you can create additional repositories, which are your sub folders.
Once you create your repository, that’s it! Go to your-username.github.io on the web and look at your new domain.
I won’t go into how to add your code to your repository, but there are several ways. You can do it through the website, you can download the Github Desktop app or use the command line.
Also note that Github only allows each repository to be no larger than 1GB, which if you optimize your site should be more than fine.
Next week we’ll look at setting up a database with Google Sheets!
Get more insights like this on my blog, jaejohns.com/blog