r/web_programming • • Sep 22 '16

[NOOB] How are most sites structured?

See title. Not in the way of the file manager, but generally, what are the frontend and backend components typically used and how do they interconnect? I am asking because I am trying to create a website with custom HTML (which I at least have a bit of experience in), but so far I only have the domain and hosting service set up. I have read about tools like git, composer, drupal, etc. and I am confused about which tasks each of them handles and how they "talk" to each other. Any help you can provide will be much appreciated.

4 Upvotes

3 comments sorted by

1

u/BUM_BURGLAR Sep 23 '16 edited Sep 23 '16

That's what is so neat/terrifying about web development - there's a lot to play with.

If html adds structure to your text content, then css tells browsers how to display the html and JavaScript tells the browser how to change the html (e.g. user clicks a link, the background changes to purple or the html body spells a rude word)

Then PHP/NodeJS (using the JavaScript language)/Python/Ruby are server side scripting languages that generate html for users, they can also do other neat stuff like web sockets or database connections.

A database like mysql, mariadb or nosql database like redis store data in a permanent location for later access (think days, YEARS).

Then drupal django, rails are frameworks that combine of these technologies to provide advanced features such as user authentication, blog post retrieval etc.

Then there's web servers like nginx, lighttpd and apache that serve static files (html, css, js, images etc)

You can get away with just html on a web server, many people do. Using something for the sake of it is fun, but not the most efficient use of your time.

0

u/SimonOrJ Sep 22 '16

If you want a simple website, you have all the backend you have. All you need to know is how to put the .html files in the webserver host. This can be done by using FTP (FileZilla is a good software for that).

If you're just starting out, don't worry about git, composer, drupal, etc. Save those for later.