Frontend vs Backend
Here comes my restaurant analogy (for those in Enactus sem2 2024 I will try be more clear this time round)
Let us say you own a restaurant (cause ur an entrepreneur). The main goal of a restuarant is to serve food - and to serve the food which customers ask for. So, they need to figure out what customers need, make the particular order, then serve it back to the customers
- The Kitchen is responsible for processing orders and creating the food
- The Waiters are responsible for delivering orders and the food to the client
- The Menu is what the customers interact with to choose the product they want
All of these three work and interact together to make restaurants work. In this example
- The kitchen is the backend
- The waiters are the middleware
- The Menu is the frontend
Lets dive a little deeper into what each of these layers are
warning
The main thing to remember is that the front end and the back end run on separate computers - and act almost as separate programs (even if something like NextJS abstracts that)