Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 4, 2020 10:05 pm GMT

BREAKING INTO WEB DEV - THE NO JARGON GUIDE - ARTICLE 2 - DEPLOYING YOUR FIRST WEBSITE

laptop on a table

Table Of Contents

INTRODUCTION

Breaking into the tech industry as someone over the age of 25, who didn't study computer science in school was intimidating.

Im 29 years old, the extent of my tech education in school was building a website using PowerPoint yes you read that right PowerPoint.

I bumbled my way through life, knowing tech was something that I was interested in but that I always thought was out of my reach.

If you are reading this and you are feeling like I was, I am here to tell you

TECH IS FOR YOU! And I am on a mission to help you make the best start.

ABOUT THIS BLOG

Welcome to my blog a series of articles for newbies aimed at explaining things that I found challenging in very plain English so that they will be a breeze for you (hopefully).

As a newbie I often found the guides I am reading have this element of tech "stuff" I am just expected to know about. They all seem to assume prior knowledge or knowledge around the subject so I created this blog to help guide you through the things I found tough.

I am open to feedback so please, leave me some below or reach out to me on Twitter. I am also keen to cover the topics that you will find most useful so if you have got a burning question/worry get in touch and I will try and include it in this series.

This is article 2. I ran a poll to get an idea of which topics to cover first, the vote came out as:

  1. Git/GitHub - see that here
  2. Hosting/Domains
  3. What even is Web Dev? (this will be an overview of the industry, roles, languages, working options etc.)

Just so you know what will be coming up next

A couple of notes for the reader

Navigation - you can read this guide all in one of use the contents list above to jump to the sections you need.

This guide is intended to give aspiring web developers a one-stop-shop to learn about deploying their first website, it also covers an overview of how the web works, hosting and domains. Id suggest you read it all to gain a better understanding, but you can just skip to the Setup Guide option if youre in a hurry

This guide assumes you have an interest in Web Development and have started learning to write code in some form.

I have tried to explain everything very simply, if you feel patronised, Im sorry but as someone who found other guides too technical, I wanted to try a no jargon approach.

Ok if you are still with me, lets dive in.

THE REAL JUICY STUFF

LEARNING OUTCOMES

By the end of this post, I hope you will be able to:
Understand how to make you website publicly available
Understand a little bit more about how the web works
Understand domain names and when you might want one
Understand hosting
Understand the different hosting options
Understand a tiny bit about the Cloud

HOW DO I DEPLOY MY WEBSITE?

So, youve finished coding your first website! Congratulations!

What do you do with it now?

How do you make it accessible to other people?

Im going to be honest; if you are a detail person and need to know the why and the how the answer is not simple, and it might take you down a rabbit hole you never really wanted to go down butdont fear! This guide will cover it all step-by-step.

The next section goes over how the web works and what that means for your site, however, if youre in a hurry, you can skip to the Setup Guide here.

NOW, IF YOU REALLY WANT TO GEEK OUT, LETS LEARN THE DETAIL

For those with a qualification in Computer Science you are probably aware of how accessing the web works (the bits you dont see) but for those who are not familiar, heres a diagram:

diagram of internet network & www overview

As you can tell I am not an artist but at I hope this helps you visualize before the more detailed explanation:

1. You log onto your PC and pull up the browser.

2. Your PC runs its protocols
Your computer has in-built networking software that runs protocols to check that you have the necessary permission to access the web, it also checks on the processes it should use for data exchange between the web and you.

3. You get an IP Address
Your Internet Service Provider (ISP) the company that supplies your internet connection, provides you with an IP Address.

IP Address
Its like a return address for your computer, some people believe their IP Address is permanent it isnt. Your IP address is temporary and may change at any time, something as simple as restarting or router can cause a change in IP. Each IP address is unique and ensures the data is returned to your exact device.

IP Addresses are 4 sets of numbers with 1 to 3 digits, separated by a full stop, like this:

66.171.248.170

Fun Fact - once upon a time, the world ran out of IP Addresses and there was a mass panic from the tech companies, this caused IP Addresses to move to the latest version IPv6 which has a theoretical maximum number of number combinations of:

340,282,366,920,938,463,463,374,607,431,768,211,456

4. You enter a URL or Domain Name

URL
The full web address, examples:

https://www.google.com/
https://www.lauracharvey.dev/about-me.html

Domain Name
The name of the web page, examples:

www.google.com
www.lauracharvey.dev

5. Your browser chucks out a domain name search

Your browsers sends a message to the Domain Name System (DNS) to get the IP address of the domain name.

Domain Name System (DNS)
A very complicated set of servers set up like an internet address book, they deal with translating the domain name into an IP Address which is then passed back to your browser.

Server
A piece of hardware (I could not think of a word to replace this its like an actual computer its an object that you can touch) or software (a computer program) that helps look after/manage/or serve a computer network. There are many different types of server Google is your friend if you want to read more about them.

6. Your browser sends a request to the server

To see the stored files, your browser needs to ask permission from the server where the data is stored. This request is made using HTTP.

HTTP
Hypertext Transfer Protocols the rules of the web, a set of rules used to decide how messages and data are transmitted and what actions servers and browsers should take when commands are made. For example, your browser sends a fetch message to the server, the server then transmits the webpage to the browser.

7. The server accepts the request

The server then sends the necessary data to your browser using HTTP.

8. You see the web page

Your browser delivers a sparkly web page right before your eyes!

This all happens within seconds which actually blew my mind when I realised that human beings came up with this whole system I mean how?!

PRETTY COOL, HOW DO I GET A HOME ON THE WORLD WIDE WEB?

For your web page to be out there on the World Wide Web, the files, images, source code and other data need somewhere to live to make them easily accessible by browsers. Therefore, you need to rent some space on a web server. Think of it like renting an apartment but for your files.

Unless you work for a mahooosive organisation, your servers (the actual hardware) are more than likely going to be owned by a web hosting company like Blue Host. They own the actual physical servers, which are just big computers used for storing data and your web page is assigned a space on one of their servers, it is also given its own IP address.

As you can imagine, server space is valuable, so generally you pay a fee for a hosting service.

There are multiple hosting options:

Shared Hosting

You share the server with other people, and you do not have control over the set up of that server, the hardware and software are controlled by the hosting company

Dedicated Hosting

You rent the whole server and have control over its setup

Virtual Private Server (VPS)

Like a hybrid between Shared and Dedicated, it mimics a dedicated server so that you can customise the setup but in reality, it is still a shared server physically but you just get the equivalent of a private suite!

The Cloud

Im sure you hear about the cloud all the time, I was always so confused when I heard people talk about it, I was thinking well it must be somewhere, it cant just be in the sky, or can it?!

To confirm, its not in the sky, it is on physical servers however, those servers exist all over the world and are connected via the internet. The cloud is popular because a person can access very powerful applications on low quality devices with just an internet connection, the data is held in the cloud, so they do not need lots of memory to run/store it. The company behind the software also do not have any IT infrastructure of their own to maintain.

The cloud is a whole world of its own, if youd like to know more, I have added and additional reading section at the bottom of this post.

As a newbie, its unlikely youll be looking at a dedicated server, VPS, or the Cloud so Id go with shared hosting for the time being.

OK, HOW DO I FIND A HOST?

I really like Netlify - https://www.netlify.com/ because it is free and super simple to use but in case youre fussy, here are some other suggestions:

Blue Host https://www.bluehost.com/
Hostinger - https://www.hostinger.co.uk/
HostGator -
A2 Hosting - https://www.a2hosting.com/

THANKS, BUT WHAT AM I ACTUALLY LOOKING FOR IN A HOST?

You need to pick your host based on the following things:

Type of website

Is it a personal site, business site, a fun side project you want to use to showcase your skills? The type of website, what you want to do with it and how many visitors you expect to the site will all make a difference to choosing the right host.

Your required bandwidth

Bandwidth is the maximum amount of data transmitted in a certain number of megabits per second. Its how much data can be transferred to/from your website in a given period e.g. a month or a year. Its sometime confused with internet speed, but the two things are very different. Basically, a large company who expect over 20,000 visitors to their page needs around 5000MB/5GB of bandwidth so you should be golden with anything under that amount, dont overpay, you wont benefit from it. FYI - Netlify offer 100GB as standard.

Is Email Included?

If youd like someone to be able to contact you at [email protected] for example rather than a Gmail or Hotmail account, you can sometimes get this service included with your hosting package.

Hosting options

Covered above

SSL Certificates

These are little data add ons that are stored on the server, they allow for a secure transfer of information, more and more sites use them these days but they are especially important if you are collecting sensitive personal information or credit card information. They activate the HTTPS protocol so the web address becomes:

https://lauracharvey.netlify.app

instead of:

http://lauracharvey.netlify.app

OK, IVE CHOSEN MY HOST, HOW DO I GIVE MY SITE A COOL NAME?

To have a personalised site address, youll need a domain name which is basically like the postal address for your website, you might also know it as the URL (which is slightly different as discussed above). A domain name is unique and no two can be the same.

As an example, if I wanted to have my own domain name, as long as the domain name wasnt taken by somebody else, I could have:

www.lauracharvey.dev (which I am actually the proud owner of)

Ok, you might be thinking, why can't I just call it that when I set it up with the host? Well...you can do that, but you have to pay for it.

Any time you want a specific domain name that ends with something like .com, .co.uk, .io, you have to pay an annual subscription to keep it. So, you dont want to be paying for one when its not necessary (yeah Im looking at you, yes you, the one with the 10 side projects each with a domain name but no source code).

For the time being I would suggest getting your domain name and your hosting in the same place, it might be a tiny bit more expensive but at least its one less thing to worry your already overworked brain about!

As explained, your domain name must be unique so unfortunately if your name is John Smith you might struggle! If you cant get johnsmith.com you can either try different endings or try using a middle initial but dont forget...

If you buy johnsmith.com, johnsmith followed by any other combinations .co.uk, .io, .dev etc. are not included, this might mean, another John Smith might buy johnsmith.dev which could be confusing for clients and employers searching for your site and winding up on his.

Also, if youre buying a domain for a portfolio, it needs to look professional so dont go for something like: johnsmith1990.com.

Sites like Name Cheap: https://www.namecheap.com/ are good for searching, if your domain name isnt available itll give you alternative options.

You might want to consider buying the top 3 options to take them off the market and therefore make them unavailable for other people.

PERFECT! I BOUGHT JOHNSMITH.COM, WHAT NOW?!

Congrats! You can move onto the below setup instructions; you can skip to point 1. to get going quickly.

SETUP GUIDE

If you have skipped to this point, the Setup Guide assumes you dont want to know about the how/why and just gives the basic instructions on how to deploy your site. If you want to know details, read from the top!

To deploy a site, you need hosting and you also need to decide whether you are going to buy a domain name.

A domain name is how people will know of and access your site, so, if you decide on Netlify for hosting (as an example) and chose not to have a specific domain name, your sites URL will always end with: .netlify.app/

Like: http://laurasrockpaperscissors.netlify.app/

However, if you choose to have your own, you can decide whether it ends .com, .co.uk, .io etc. The only trouble is you have to pay for the privilege!

Most hosting services will offer the opportunity to purchase a domain name however, if youre a real penny pincher you might find one cheaper elsewhere!

Before deploying a project, you need to consider:

Type of website
Your required bandwidth
Whether an email service is included
Hosting options
If SSL Certificates are included

For today, Ill assume its a personal project that you are trying to deploy and talk you through set up with Netlify.

  1. First things first, get your project on GitHub.

If you dont know about Git & Git Hub yet, please check my previous article here for full instructions on uploading your project.

  1. Set up a Netlify account here: https://www.netlify.com/

  2. Link your GitHub

In Netlify, there is a button New site from Git

Youll see the following screen:

screenshot from Netlify

Click GitHub at the bottom

It should then ask you sign into GitHub, and itll pull through your active repos

  1. Select your repo

Once your list has pulled through, select the relevant repo.

screenshot 2 from Netlify

  1. Choose your deploy settings

screenshot 3 from Netlify

You can leave the build setting blank if you dont have anything to add.

  1. Deploy site

Go on, click that button!

  1. Change the name

Your site will be given some crazzzzy name so change here:

screenshot 4 from Netlify

Site Settings if you want to change the name and have the .netlify.app in the address

Domain Settings if youd like to pick/add your own domain name

  1. Marvel at your own little piece of real estate on the World Wide Web!

EXTRA READING WHAT IS THE CLOUD?

The cloud is everywhere, essentially the cloud accesses hundreds of servers that are connected via the internet to bring you content.

It allows easier access to applications for the user, for example, if you were to download Microsoft Office to your computer, you would need a computer powerful enough to run it and a lot of memory to store the application and its data, whereas, if you use cloud-based service like Google Docs, you can access the same features through the internet without the need to download anything to your computer.

Before the cloud, software applications were tied to one computer, you couldnt access the same software or data on your PC and on your smartphone.

The cloud is not owned by anyone, it is collectively managed, and its easily accessible nature has allowed for lots of new application to be offered for free and some older application be offered at a much cheaper price.

For example, Adobe applications used to cost hundreds of pounds for one licence, now you can access the whole Adobe Creative Suite for a monthly fee.

The cloud has also made it easier and cheaper for the businesses behind these applications. Companies now have a lot more choice about their back-end setup so instead of requiring a whole team of IT professionals they can access all or some of the services through the cloud.

There are three types of cloud:

Public
Private
Hybrid

There is also a tier like system for the different types of cloud services:

Infrastructure as a Service (IaaS)

This is the most basic level, you rent the back-end services like: servers, storage, networks, firewalls etc.

Platform as a Service (PaaS)

PaaS includes everything from IaaS, but it also has added middleware with things like operating systems, development tools (easily accessible development software managed by the cloud provider), business intelligence (analytics) services, database management

Software as a Service (SaaS)

SaaS is best imagined as a large organisation using the software over a large network like Microsoft Outlook, the company would rent the hardware and the software from the cloud provider so that all their employees can access the application.

There is also:

Serverless Computing

Is very similar to and crosses over with PaaS however, it is highly scalable and event-driven meaning code is only executed when necessary, so the renter is charged for exact usage rather than a subscription amount.

Examples of cloud computing services are:

AWS
IBM Cloud
Google Cloud

Thats about the extent of my knowledge on the cloud so please, no questions!

Joking, I love questions, come at me bro

CONCLUSION

I really hope this guide helped you understand the steps needed to deploy your first website and learn a bit more about the web without being bowled over by jargon.

If you have any questions or there is something I have not explained clearly, please drop me a comment.

As explained in the intro, I am doing a series of these guides so comment or reach out to me on Twitter if there is anything you would like me to cover.

I have loved putting this guide together so please, give me more things to write about!


Original Link: https://dev.to/lauracharvey/breaking-into-web-dev-the-no-jargon-guide-article-2-deploying-your-first-website-13nn

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To