+ 2
How does a website work
Hi friends, I need someone to put me through on how a website works.. For Example when creating a blog , how do they create different http links for different pages, How are login Users stored... And please can I create a full website using only REACT JS..And do you link a Backend to your website Please someone should help me with an answer.. And I will like someone to put me through.
2 odpowiedzi
+ 4
There are two main parts in web development.
1. Frontend
2. Backend
Now take an example of blog which contains a webpage with some information which is formatted. Now we know these websites are created using html, css, JavaScript. The things which are visible in web browser is frontend part, you can edit the content and can change rules temporarily .
But let say you want multiple pages in your blog website. Now, if you don't use some way to make those pages dynamic you have to create multiple page with same format for blogs.
Here comes backend. Now, you will create a single page with format for all the blogs and stores the information of each blog in database. The backend programming languages will retrieve the information for corresponding page and will paste in that single page as formatted, compiles the html file and sends to the user browser. Since this process is done at server so user cannot modify the rules so it is much safer than only front end pages.
+ 1
There are many ways to create a website. I will ask you "Are you creating website for yourself?" or "Are you creating a website for any one else?".
If you are creating a website for yourself then you may not need a backend or "Authentication". Just use “JAM” stack.
If you are creating a website for someone else. Chances are you will need backend. But there are some options
(i). headless WordPress with gatsby and Netlify.
(ii). Contentful with gatsby and Netlify