Melj16 / portfolio-webste

My personal portfolio website
0 stars 0 forks source link

Suggestion: Getting your own domain #1

Open banthedev opened 2 years ago

banthedev commented 2 years ago

Description

Since you have GitHub Pro status you can use a variety of free stuff from the GitHub Student Developer Pack, meaning you can get a free domain for one year from domain from NameCheap. From there you can add your domain to your netlify deployment and have i.e. melissajiang.me etc

Use this link: https://education.github.com/pack/offers#

And scroll down to the name cheap offer 👍

Melj16 commented 2 years ago

Thank you, that's very helpful.

When I did it created a repo called Melj16.github.io, is that something I can delete?

banthedev commented 2 years ago

Of course,

Honestly I would delete that repo since you only need one. I've only ever used Netlify for build deployments and not actual hosting.

And since your portfolio has no JS-build (like a framework such as Angular, React, Next, Nuxt, etc) and is static you can simply host it using GitHub pages.

The steps to do that is:

  1. Go to your repository's settings
  2. Under Code and Automation click on Pages image
  3. In the pages page you want to select which branch to deploy from (highlighted in red). And then you want to add your custom domain name "melissajiang.me" (area is highlighted in blue) (Note: Make sure to enforce HTTPs) image

The last thing you want to do is add the CNAME file to your repo. Exactly the same how it is in the other repo netlifiy created for you. Except it should live in the root of your main repo.

 // CNAME file
 melissajiang.me