Alright I did some research and basically just want to confirm here, wether I am getting everything right:
Buy a domain.
Buy a hosting service
Somehow link your code to it
So currently I only have a domain. I would love to hear some thought on which kind of hosting you would recommend. Preferably something very cheap.
Since I only know how to code and have a domain, I am a bit foggy on the process on how to connect the two.
My assumption is, that when you buy the hosting it will somehow become clear, how to actually upload the files containing the code, but perhaps I am missing some details.
Will be happy to hear some tips/advice!
(oh and if it’s relevant, for now I am only programming in the mern stack, essentially only what is taught here on FCC)
Depending on what kind of web page you’re deploying, there are a few decent hosting options.
GitHub Pages is great for static websites. And free.
Heroku is an option for full-stack applications. Their free-tier is decent.
I recently moved my things over to a DigitalOcean Droplet (VPS). That takes some knowledge for how to set up the virtual machine, though.
Some hosting providers will offer assistance with this part - GitHub Pages offers a setting, for example.
However, you’ll essentially need to add a record to your DNS that points your domain to your hosting location. Your DNS provider will have documentation for how to do this, and depending on your host there will be documentation there as well.
I bought my domain name from bluehost for my first site and when I was stuck on how to point my domain to the hosting location, the technical representative set it up for me in no time.
I do want to point out that the DNS propagation can take 24 hours -48 hours. But you don’t have to do anything on your end but just wait.
Depending on your hosting provider, you could be using CPANEL
You are able to manage your domain, email etc and you have a file manager - this is were you upload your website files. Depending on your plan it can also have a database like MySql.
Since you already have a domain name, its a matter of pointing your domain to your hosting namely updating name servers or you can update records if hosting website and email separately.
well of course the cms guy recommends using a cms…
any way, I would suggest Host Gator because that it the hosing service I use. It is easy to upload your files to their server once you get set up.