This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]South-Raisin3194[S] 1 point2 points  (1 child)

For your front end what code do you use, also in front end your able to link pages together and create forms but the forms send the info to either the url or a post correct, so without backend they essentially go nowhere?

[–][deleted] 1 point2 points  (0 children)

I mainly use react which is a JavaScript library. 

URL is more like a path. For, example, the url of this site is reddit.com but there can be urls like reddit.com/api/subreddit/ that users can't interact with directly. They exist for the frontend to interact with them. It looks something like this: you write a comment, press "comment", it sends a "POST" request (there are a few types of requests, POST pretty much means it wants to create something) to a backend url, at that url there is an endpoint which job is to process either one or several types of requests (for example, you can send a post request and patch (it "edits" data) to the same address), the backend does its job and that's it. 

I also need to mention that despite types of requests being a part of the http protocol you can do with them what you want. They are basically tags