One of my friends has been saying for a couple months that he would make his website over spring break. Now it's the end of spring break and he hasn't started. His birthday is tomorrow, and I've decided to be not a good friend and give the gift of accountability by writing down step-by-step instructions to make it as simple as possible.
It really only takes an hour to make a website. I know because I timed myself doing the following and the whole process took me just under an hour to make this website. (I even did the registering a new domain and creating a new GitHub account for a good measure!) You can view the code for this website on GitHub.
mkdir my-site && cd
my-site
. All future commands will assume you are within this
directory.git init
and
git remote add origin
https://github.com/username/username.github.io.git
with username
replaced by your username.index.html
in your website's folder with the HTML
for your main page. Don't spend long on this; it can be as simple as the following:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>YOUR SITE TITLE</title> <!-- Add some style to your site, see http://getbootstrap.com for details --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> </head> <body> <h1>YOUR SITE TITLE</h1> <p>Your text blahblahbhalbha</p> <p>Another paragraph! Maybe more text!</p> </body> </html>
python -m http.server
8000
if you're using Python 3 and python -m
SimpleHTTPServer 8000
for Python 2. Then navigate to
http://localhost:8000 in your browser.git add . git commit -m "Initial commit" git push -u origin master
CNAME
in all caps in your website directory. Then add a single line
that says yourdomainname.com
(no
http
or www
) to the file. For example the CNAME file for
this website looks like this:
makethisinanhour.comView details on CNAME configuration here.
git add . git commit -m "Add CNAME" git push
After clicking on your domain, you should see a link that says "All Host Records" on the left sidebar underneath "Host Management". Click this. Now you should see the default records that Namecheap adds for your site.
Modify your records to look like this (with username replaced by your username of course):