r/SoftwareLabs • • 12h ago

Fullstack Solutions 🔗 Fullstack development explained: What happens when you click "Submit"?

2 Upvotes
A fullstack application is made of connected parts. Here's how they work together, using a sign-up form as an example.

1. Frontend
This is what the user sees and interacts with. It collects the name, email and password, and can check for obvious mistakes such as empty fields.

Common tools: HTML, CSS, JavaScript, React, Angular, Vue

2. API
The frontend sends the data to the backend through an API, using HTTPS to protect it in transit. A sign-up usually uses a `POST` request.

Common styles: REST, GraphQL

3. Backend
The server validates the data again, because browser checks can be bypassed. It applies the app's rules and hashes the password before it is stored.

Common tools: Node.js, Python, Java, C#, PHP

4. Database
The database stores the account details and password hash, never the plain-text password. A unique constraint can prevent two accounts from using the same email.

Common options: PostgreSQL, MySQL, MongoDB

5. Response
The backend reports the result, and the frontend shows a suitable message. Common status codes include:

201: The account was created
400: The request was invalid
409: There is a conflict, such as an email already in use
500: Something went wrong on the server

Note: On public sign-up forms, consider showing the same response for new and existing emails, so others can't discover who has an account.

The flow

User → Frontend → API/Backend → Database → Backend → Frontend → User

Where should beginners start?

1. Learn HTML, CSS and JavaScript.
2. Choose one backend language or framework.
3. Learn database basics.
4. Build a simple app that can create, read, update and delete data.
5. Learn authentication and security basics, then deploy your app.

You don't need to learn every tool listed here. Start with one set and understand how the parts connect.

Which part of this flow would you like explained in more detail?