Full-Stack Project Structure

A full-stack application normally has two main parts:

  • Frontend — the part the user sees and interacts with.
  • Backend — the part that handles requests, application logic, authentication, and data.

A simple standard structure is:

my-app/
│
├── frontend/
│   └── src/
│       ├── components/
│       ├── pages/
│       ├── layouts/
│       ├── services/
│       ├── hooks/
│       ├── state/
│       ├── utils/
│       ├── assets/
│       ├── config/
│       ├── App
│       └── main
│
├── backend/
│   └── src/
│       ├── routes/
│       ├── controllers/
│       ├── services/
│       ├── models/
│       ├── repositories/
│       ├── middleware/
│       ├── validators/
│       ├── utils/
│       ├── config/
│       └── server
│
├── database/
│   ├── migrations/
│   └── seed/
│
├── tests/
├── docs/
├── .env
├── .gitignore
└── README.md

The exact file extensions depend on the technology.

For example:

.js
.ts
.jsx
.tsx
.py
.java
.cs
.go

The responsibility of the file is more important than its extension.


1. Big Picture

Before looking at individual folders, understand how the application is connected.

                         FULL-STACK APPLICATION
                                  │
                 ┌────────────────┴────────────────┐
                 │                                 │
                 ▼                                 ▼
             FRONTEND                           BACKEND
                 │                                 │
          ┌──────┴──────┐                 ┌────────┴────────┐
          │             │                 │                 │
        Pages      Components          Routes          Middleware
          │             │                 │                 │
          └──────┬──────┘                 ▼                 │
                 │                    Controllers            │
                 ▼                         │                 │
              Services                     ▼                 │
                 │                     Services ◄────────────┘
                 │                         │
                 │                         ▼
                 │                    Repositories
                 │                         │
                 └────────── API ──────────┤
                                           ▼
                                       DATABASE

In simple terms:

User
  ↓
Frontend
  ↓
API
  ↓
Backend
  ↓
Database

The response travels back in the opposite direction.


2. Frontend

The frontend contains everything related to the user interface.

frontend/
└── src/

src means source code. It contains the actual code used to build the frontend.

A typical frontend structure looks like:

frontend/src/
│
├── components/
├── pages/
├── layouts/
├── services/
├── hooks/
├── state/
├── utils/
├── assets/
├── config/
├── App
└── main

3. components/

Contains small, reusable UI parts.

Examples:

components/
├── Navbar.tsx
├── Button.tsx
├── Card.tsx
├── Modal.tsx
└── Input.tsx

Contains the navigation bar.

For example:

Logo | Home | Products | About | Login

Button.tsx

Contains a reusable button.

It can be used for:

  • Save
  • Delete
  • Login
  • Submit

Card.tsx

Contains a reusable card.

For example, a product card might contain:

Product Image
Product Name
Price
Buy Button

Modal.tsx

Contains a reusable popup/dialog.

For example:

Are you sure you want to delete this product?

Cancel       Delete

Input.tsx

Contains a reusable input field.

For example:

Email:    [____________]
Password: [____________]

The important idea is:

One reusable component
        ↓
Used by many pages

4. pages/

Contains complete application screens or pages.

Examples:

pages/
├── Home.tsx
├── Login.tsx
├── Register.tsx
├── Dashboard.tsx
├── Profile.tsx
└── Products.tsx

Home.tsx

The application's home page.

It might contain:

  • Navbar
  • Hero Section
  • Featured Products
  • Footer

Login.tsx

Contains the login screen.

It may use:

  • Input.tsx
  • Button.tsx
  • authService.ts

Register.tsx

Contains the account registration page.

For example:

Name
Email
Password
Confirm Password
Register Button

Dashboard.tsx

Contains the user's main dashboard after login.

For example:

Welcome
Statistics
Recent Orders
Notifications

Profile.tsx

Contains the user's profile page.

For example:

Name
Email
Profile Picture
Change Password

Products.tsx

Displays products.

It may use:

  • Product Card
  • Product Service
  • Search
  • Filters

A page usually combines several components:

Dashboard.tsx
     │
     ├── Navbar
     ├── Sidebar
     ├── StatisticsCard
     └── ProductTable

5. layouts/

Contains common page structures.

Example:

layouts/
├── MainLayout.tsx
└── DashboardLayout.tsx

MainLayout.tsx

A common layout for normal pages.

┌─────────────────────────────┐
│           Header            │
├─────────────────────────────┤
│                             │
│        Page Content         │
│                             │
├─────────────────────────────┤
│           Footer            │
└─────────────────────────────┘

DashboardLayout.tsx

A common layout for dashboard pages.

┌──────────────────────────────────┐
│             Header               │
├────────────┬─────────────────────┤
│            │                     │
│  Sidebar   │     Page Content    │
│            │                     │
│            │                     │
└────────────┴─────────────────────┘

Instead of repeating the same header and sidebar on every dashboard page, the layout provides them once.


6. services/

Contains code that communicates with the backend or external APIs.

Example:

services/
├── authService.ts
├── userService.ts
├── productService.ts
└── orderService.ts

authService.ts

Handles authentication-related API calls.

For example:

login()
register()
logout()
refreshToken()

It might communicate with:

POST /api/login
POST /api/register
POST /api/logout

userService.ts

Handles user-related API calls.

getUser()
updateUser()
deleteUser()

productService.ts

Handles product API calls.

getProducts()
getProduct()
createProduct()
updateProduct()
deleteProduct()

orderService.ts

Handles order-related API calls.

getOrders()
createOrder()
cancelOrder()

The basic flow is:

Page
  ↓
Frontend Service
  ↓
HTTP Request
  ↓
Backend API

The page does not need to contain all the HTTP communication code.


7. hooks/

Contains reusable frontend logic.

Example:

hooks/
├── useAuth.ts
├── useFetch.ts
└── useDebounce.ts

useAuth.ts

Reusable authentication logic.

For example:

Is user logged in?
Who is the current user?
Logout user

useFetch.ts

Reusable data-fetching logic.

It might manage:

  • Loading
  • Success
  • Error
  • Data

useDebounce.ts

Useful for search fields.

For example, instead of searching after every character:

l
lo
lap
lapt
laptop

the application can wait briefly before making the search request.

The hooks folder is especially common in React-style applications. Other technologies may organize this logic differently.


8. state/

Contains shared application state.

Example:

state/
├── authState.ts
├── cartState.ts
└── appState.ts

authState.ts

Stores authentication-related state.

For example:

currentUser
isLoggedIn
accessToken

cartState.ts

Stores shopping-cart information.

For example:

Products in cart
Quantity
Total price

appState.ts

Can contain general application state.

For example:

Theme
Language
Sidebar status

Not every application needs a separate state folder.


9. utils/

Contains small reusable helper functions.

Example:

utils/
├── formatDate.ts
├── formatCurrency.ts
└── validateEmail.ts

formatDate.ts

Converts a date into a readable format.

2026-11-30
     ↓
30 Nov 2026

formatCurrency.ts

Formats numbers as money.

1500
 ↓
₹1,500

validateEmail.ts

Checks whether an email has a valid format.

abc@example.com  → valid
abc              → invalid

These are general-purpose helpers rather than page-specific code.


10. assets/

Contains static frontend files.

A common structure is:

assets/
│
├── images/
│   ├── logo.png
│   ├── banner.jpg
│   └── product-1.jpg
│
├── icons/
│   ├── search.svg
│   ├── menu.svg
│   └── delete.svg
│
├── fonts/
│   └── custom-font.woff2
│
├── logos/
│
└── styles/

Think of it as:

assets/
│
├── images/  → photos, banners, product images
├── icons/   → search, menu, delete icons
├── fonts/   → font files
├── logos/   → application/company logos
└── styles/  → shared styling files

logo.png

Application logo.

banner.jpg

Large image used on a page, such as a homepage banner.

product-1.jpg

Product image.

search.svg

Search icon.

Menu icon.

delete.svg

Delete/trash icon.

custom-font.woff2

Custom font file.

You do not need every subfolder. Add only what the project needs.


11. config/

Contains frontend configuration.

Example:

config/
└── api.ts

api.ts

Can contain the backend API configuration.

For example:

API_BASE_URL

Then services can use the configuration instead of repeating the API address everywhere.


12. App

Usually represents the main/root part of the frontend application.

For example:

App.tsx

It may connect:

  • Routes
  • Layouts
  • Global Components

A simplified structure:

App
│
├── Navbar
├── Routes
│   ├── Home
│   ├── Login
│   └── Dashboard
└── Footer

13. main

Usually the entry point of the frontend application.

For example:

main.tsx

Its job is generally to start the frontend application and render the root application.

The relationship is:

main.tsx
    ↓
App.tsx
    ↓
Routes
    ↓
Pages
    ↓
Components

14. Backend

The backend contains the server-side code.

backend/
└── src/

A typical backend structure:

backend/src/
│
├── routes/
├── controllers/
├── services/
├── models/
├── repositories/
├── middleware/
├── validators/
├── utils/
├── config/
└── server

The main idea is:

Request
   ↓
Route
   ↓
Controller
   ↓
Service
   ↓
Repository
   ↓
Database

15. routes/

Contains the API route definitions.

Example:

routes/
├── authRoutes.ts
├── userRoutes.ts
├── productRoutes.ts
└── orderRoutes.ts

authRoutes.ts

Authentication endpoints:

POST /api/login
POST /api/register
POST /api/logout

userRoutes.ts

User endpoints:

GET    /api/users/:id
PUT    /api/users/:id
DELETE /api/users/:id

productRoutes.ts

Product endpoints:

GET    /api/products
GET    /api/products/:id
POST   /api/products
PUT    /api/products/:id
DELETE /api/products/:id

orderRoutes.ts

Order endpoints:

GET  /api/orders
POST /api/orders
GET  /api/orders/:id

Routes answer:

"Where should this request go?"


16. controllers/

Controllers handle the incoming request and outgoing response.

Example:

controllers/
├── authController.ts
├── userController.ts
├── productController.ts
└── orderController.ts

For example:

Request
   ↓
Controller
   ↓
Service
   ↓
Response

authController.ts

Handles login/register requests.

userController.ts

Handles user-related requests:

getUser()
updateUser()
deleteUser()

productController.ts

Handles product-related requests:

getProducts()
createProduct()
updateProduct()
deleteProduct()

orderController.ts

Handles order-related requests:

getOrders()
createOrder()
cancelOrder()

The controller should mainly coordinate the request and response. Large business rules usually belong in the service layer.


17. services/

Contains the business logic of the backend.

Example:

services/
├── authService.ts
├── userService.ts
├── productService.ts
└── orderService.ts

authService.ts

Authentication logic:

Find user
   ↓
Check password
   ↓
Create authentication information
   ↓
Return result

userService.ts

User-related business rules:

Create user
Update user
Check whether user exists

productService.ts

Product-related rules:

Check product
Calculate price
Create product
Update product

orderService.ts

Order-related rules:

Check product availability
Calculate total
Apply discount
Create order

The important difference is:

Controller
    ↓
Handles request/response

Service
    ↓
Handles business rules

18. models/

Contains representations of application data/entities.

Example:

models/
├── User.ts
├── Product.ts
└── Order.ts

User.ts

Represents user data:

id
name
email
password
createdAt

Product.ts

Represents product data:

id
name
price
description
stock

Order.ts

Represents order data:

id
userId
items
total
status
createdAt

Depending on the technology, these files may represent database models, schemas, entities, or data structures.


19. repositories/

Contains database access code.

Example:

repositories/
├── userRepository.ts
├── productRepository.ts
└── orderRepository.ts

userRepository.ts

Database operations related to users:

findUserById()
findUserByEmail()
createUser()
updateUser()
deleteUser()

productRepository.ts

Database operations related to products:

findProducts()
findProductById()
createProduct()
updateProduct()
deleteProduct()

orderRepository.ts

Database operations related to orders:

findOrders()
findOrderById()
createOrder()
updateOrder()

The relationship is:

Business Logic
      ↓
Repository
      ↓
Database

For small applications, you may not need a separate repository layer.


20. middleware/

Middleware contains code that runs between the request and the final handler.

Example:

middleware/
├── authMiddleware.ts
├── errorMiddleware.ts
└── loggingMiddleware.ts

authMiddleware.ts

Checks authentication.

Request
   ↓
Authentication check
   │
   ├── Yes → Continue
   │
   └── No  → Reject

errorMiddleware.ts

Handles errors in a common place.

loggingMiddleware.ts

Records information about requests.

For example:

GET /api/products
POST /api/login
DELETE /api/products/10

21. validators/

Contains code that checks incoming data.

Example:

validators/
├── authValidator.ts
├── userValidator.ts
└── productValidator.ts

authValidator.ts

Checks login/register data:

Email is required
Email must be valid
Password is required

userValidator.ts

Checks user information:

Name is required
Email is valid

productValidator.ts

Checks product information:

Product name is required
Price must be a number
Stock cannot be negative

Validation protects the application from invalid input.


22. Backend utils/

Contains general-purpose backend helper functions.

Example:

utils/
├── hashPassword.ts
├── generateToken.ts
└── formatResponse.ts

hashPassword.ts

Reusable password-hashing functionality.

generateToken.ts

Reusable token-generation functionality if the application uses token-based authentication.

formatResponse.ts

Can create a consistent API response format.

For example:

{
  "success": true,
  "data": {}
}

23. Backend config/

Contains backend configuration.

Example:

config/
├── database.ts
└── environment.ts

database.ts

Contains database connection/configuration.

For example:

Connect to PostgreSQL
Connect to MySQL
Connect to MongoDB

environment.ts

Reads and organizes environment configuration.

For example:

DATABASE_URL
PORT
API_KEY

Sensitive values are normally stored in .env.


24. server

The backend entry point.

For example:

server.ts

It normally connects the major backend pieces:

server.ts
   │
   ├── Middleware
   ├── Routes
   ├── Database
   └── Start Server

A request then flows through the application:

Request
   ↓
Middleware
   ↓
Route
   ↓
Controller
   ↓
Service
   ↓
Repository
   ↓
Database

25. Database

Database-related files can be kept separately.

database/
├── migrations/
└── seed/

migrations/

Contains files that create or change database structure.

For example:

001_create_users
002_create_products
003_create_orders

The idea is:

Migration 1
    ↓
Create Users

Migration 2
    ↓
Create Products

Migration 3
    ↓
Create Orders

Migrations allow database changes to be tracked over time.

seed/

Contains data used to populate the database, usually for development or testing.

For example:

usersSeed
productsSeed

This might create:

Test Users
Sample Products
Initial Categories

26. tests/

Contains automated tests.

Tests can check:

  • Frontend components
  • API endpoints
  • Business logic
  • Database operations
  • Complete user flows

Example:

tests/
├── login.test.ts
├── product.test.ts
└── user.test.ts

login.test.ts

Tests login behavior.

product.test.ts

Tests product functionality.

user.test.ts

Tests user functionality.

The exact organization depends on the testing framework.


27. docs/

Contains project documentation.

Example:

docs/
├── api.md
├── setup.md
└── architecture.md

api.md

Documents API endpoints.

For example:

POST /api/login
GET /api/products
POST /api/orders

setup.md

Explains how to install and run the project.

architecture.md

Explains the overall project structure and important technical decisions.


28. .env

Contains environment-specific configuration values.

For example:

PORT=3000
DATABASE_URL=...
API_KEY=...

These values can be different for:

  • Development
  • Testing
  • Production

Sensitive information should normally not be committed to Git.


29. .gitignore

Tells Git which files should not be tracked.

Common examples:

node_modules/
.env
dist/
build/

This prevents unnecessary or sensitive files from being committed.


30. README.md

The main documentation file for the project.

It usually explains:

  • What the project does
  • How to install it
  • How to configure it
  • How to run it
  • How to test it

For someone new to the project, README.md is usually the first file to read.


31. Complete Request Flow

Now let's connect everything together.

Suppose the user opens the login page and clicks Login.

The complete flow can look like this:

                    FRONTEND
                       │
                       ▼
                 Login.tsx
                       │
                       ▼
                authService.ts
                       │
                       │ HTTP POST
                       ▼
                 BACKEND API
                       │
                       ▼
                authRoutes.ts
                       │
                       ▼
              authMiddleware.ts
                       │
                       ▼
             authController.ts
                       │
                       ▼
               authService.ts
                       │
                       ▼
             userRepository.ts
                       │
                       ▼
                   DATABASE

The response then comes back:

DATABASE
   ↓
Repository
   ↓
Service
   ↓
Controller
   ↓
HTTP Response
   ↓
Frontend Service
   ↓
State / Component
   ↓
UI
   ↓
User

This is one of the most important diagrams to understand.


32. Frontend Flow

A simplified frontend flow is:

main.tsx
    ↓
App.tsx
    ↓
Routes
    ↓
Page
    ↓
Components
    ↓
Services
    ↓
Backend API

For example:

main.tsx
    ↓
App.tsx
    ↓
Login.tsx
    ↓
Input.tsx + Button.tsx
    ↓
authService.ts
    ↓
POST /api/login

33. Backend Flow

A simplified backend flow is:

Request
   ↓
Route
   ↓
Middleware
   ↓
Controller
   ↓
Service
   ↓
Repository
   ↓
Database

Each layer has a simple responsibility:

Route
  ↓
"Where does this request go?"

Controller
  ↓
"How do I handle the request and response?"

Service
  ↓
"What business rule should happen?"

Repository
  ↓
"How do I read or save the data?"

Database
  ↓
"Where is the data stored?"

This separation makes the code easier to understand and maintain.


34. Example: Creating a Product

Suppose an admin creates a product.

The flow could be:

Admin
  ↓
CreateProduct.tsx
  ↓
productService.ts
  ↓
POST /api/products
  ↓
productRoutes.ts
  ↓
authMiddleware.ts
  ↓
productValidator.ts
  ↓
productController.ts
  ↓
productService.ts
  ↓
productRepository.ts
  ↓
Database

Each part has a different job.

CreateProduct.tsx
    → Shows the form

productService.ts
    → Sends API request

productRoutes.ts
    → Defines the endpoint

authMiddleware.ts
    → Checks authentication

productValidator.ts
    → Checks input

productController.ts
    → Handles request/response

productService.ts
    → Applies business rules

productRepository.ts
    → Saves product to database

35. Complete Example Structure

Putting everything together:

my-app/
│
├── frontend/
│   └── src/
│       │
│       ├── components/
│       │   ├── Navbar.tsx
│       │   ├── Button.tsx
│       │   └── Card.tsx
│       │
│       ├── pages/
│       │   ├── Home.tsx
│       │   ├── Login.tsx
│       │   └── Dashboard.tsx
│       │
│       ├── layouts/
│       │   └── DashboardLayout.tsx
│       │
│       ├── services/
│       │   ├── authService.ts
│       │   └── productService.ts
│       │
│       ├── hooks/
│       │   └── useAuth.ts
│       │
│       ├── state/
│       │   └── authState.ts
│       │
│       ├── utils/
│       │   └── formatCurrency.ts
│       │
│       ├── assets/
│       │   ├── images/
│       │   │   └── logo.png
│       │   └── icons/
│       │       └── search.svg
│       │
│       ├── config/
│       │   └── api.ts
│       │
│       ├── App.tsx
│       └── main.tsx
│
├── backend/
│   └── src/
│       │
│       ├── routes/
│       │   ├── authRoutes.ts
│       │   └── productRoutes.ts
│       │
│       ├── controllers/
│       │   ├── authController.ts
│       │   └── productController.ts
│       │
│       ├── services/
│       │   ├── authService.ts
│       │   └── productService.ts
│       │
│       ├── models/
│       │   ├── User.ts
│       │   └── Product.ts
│       │
│       ├── repositories/
│       │   ├── userRepository.ts
│       │   └── productRepository.ts
│       │
│       ├── middleware/
│       │   ├── authMiddleware.ts
│       │   └── errorMiddleware.ts
│       │
│       ├── validators/
│       │   └── authValidator.ts
│       │
│       ├── utils/
│       │   └── hashPassword.ts
│       │
│       ├── config/
│       │   └── database.ts
│       │
│       └── server.ts
│
├── database/
│   ├── migrations/
│   └── seed/
│
├── tests/
├── docs/
├── .env
├── .gitignore
└── README.md

36. The Main Idea

You do not need to memorize every filename.

Remember the responsibility of each part.

Frontend

Folder Responsibility
components/ Reusable UI
pages/ Complete screens
layouts/ Common page structure
services/ API calls
hooks/ Reusable frontend logic
state/ Shared application state
utils/ Helper functions
assets/ Images, icons, fonts, etc.
config/ Configuration

Backend

Folder Responsibility
routes/ API URLs
controllers/ Request/response handling
services/ Business logic
models/ Data definitions
repositories/ Database operations
middleware/ Request processing
validators/ Input checking
utils/ Helper functions
config/ Configuration

37. The Most Important Flow

                    USER
                      │
                      ▼
                  FRONTEND
                      │
                      ▼
                 API REQUEST
                      │
                      ▼
                   ROUTE
                      │
                      ▼
                 CONTROLLER
                      │
                      ▼
                  SERVICE
                      │
                      ▼
                REPOSITORY
                      │
                      ▼
                  DATABASE
                      │
                      ▼
                 API RESPONSE
                      │
                      ▼
                  FRONTEND
                      │
                      ▼
                    USER

That is the core idea behind a standard full-stack application.

The folder names can change between technologies, but the responsibilities and flow remain mostly the same.


38. Keep It Simple

You do not need every folder from day one.

For a small project, this can be enough:

frontend/src/
├── components/
├── pages/
├── services/
└── utils/

backend/src/
├── routes/
├── controllers/
├── services/
└── models/

As the application grows, add things such as:

layouts/
hooks/
state/
repositories/
middleware/
validators/
config/

The goal of project structure is not to create as many folders as possible.

The goal is simply to make it clear:

Where does this code belong?


39. Popular Technologies by Language

Language Frontend / UI Backend / Frameworks Database / ORM Testing
JavaScript React, Vue, Angular, Svelte Node.js, Express, NestJS, Fastify Sequelize, TypeORM Jest, Vitest
TypeScript React, Next.js, Angular, Vue Node.js, NestJS, Fastify, Hono Prisma, Drizzle, TypeORM Jest, Vitest
Python React, Vue Django, Flask, FastAPI SQLAlchemy, Django ORM pytest
Java React, Angular Spring Boot, Quarkus Hibernate, JPA JUnit
C# React, Angular ASP.NET Core Entity Framework Core xUnit, NUnit
PHP Vue, React Laravel, Symfony Eloquent, Doctrine PHPUnit
Ruby React, Vue Ruby on Rails Active Record RSpec
Go React, Vue Gin, Fiber, Echo GORM, sqlx Go testing
Rust React, Vue Axum, Actix Web SQLx, Diesel Rust test
Kotlin Android, Jetpack Compose Ktor, Spring Boot Room, Exposed JUnit
Swift SwiftUI, UIKit Vapor Core Data XCTest
Dart Flutter Dart Frog, Shelf Drift, Hive flutter_test

40. Common Supporting Technologies

Area Popular Technologies
SQL Database PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle
NoSQL MongoDB, DynamoDB, Firestore, Cassandra
Cache Redis, Memcached
API REST, GraphQL, gRPC, WebSocket, tRPC
Authentication Auth.js, Auth0, Clerk, Firebase Auth, Keycloak
State Management Redux, Zustand, MobX, Pinia, NgRx
Testing Jest, Vitest, Playwright, Cypress, pytest, JUnit
Build Tools Vite, Webpack, Turbopack
Package Managers npm, pnpm, Yarn, Bun
Containers Docker, Kubernetes
CI/CD GitHub Actions, GitLab CI/CD, Jenkins
Cloud AWS, Azure, Google Cloud
Hosting Vercel, Netlify, Render, Railway
Monitoring Sentry, Prometheus, Grafana
Version Control Git, GitHub, GitLab

41. Common Named Full-Stack Stacks

Stack Full Form / Technologies
MERN MongoDB + Express + React + Node.js
MEAN MongoDB + Express + Angular + Node.js
MEVN MongoDB + Express + Vue + Node.js
PERN PostgreSQL + Express + React + Node.js
LAMP Linux + Apache + MySQL + PHP
LEMP Linux + Nginx + MySQL + PHP
Django Stack Django + React/Vue + PostgreSQL
FastAPI Stack FastAPI + React/Vue + PostgreSQL
Spring Stack Spring Boot + React/Angular + PostgreSQL/MySQL
.NET Stack ASP.NET Core + React/Angular + SQL Server
Laravel Stack Laravel + Vue/React + MySQL/PostgreSQL
Rails Stack Ruby on Rails + React + PostgreSQL
Go Stack Go + React/Vue + PostgreSQL
Rust Stack Rust + React/Vue + PostgreSQL
Next.js Stack Next.js + TypeScript + PostgreSQL/MongoDB
T3 Stack Next.js + TypeScript + Tailwind + Prisma + API/Auth tools
Flutter Stack Flutter + Firebase / REST API + PostgreSQL
MERN + Redis MongoDB + Express + React + Node.js + Redis
MERN + Docker MERN + Docker deployment
PERN + Docker PostgreSQL + Express + React + Node.js + Docker
React + FastAPI React + FastAPI + PostgreSQL
React + Spring Boot React + Spring Boot + PostgreSQL
React + ASP.NET React + ASP.NET Core + SQL Server

42. Summary

A standard full-stack application can be understood through a few major responsibilities.

FRONTEND
────────────────────────────
Components
Pages
Layouts
Services
Hooks
State
Utils
Assets
Config
BACKEND
────────────────────────────
Routes
Controllers
Services
Models
Repositories
Middleware
Validators
Utils
Config
INFRASTRUCTURE
────────────────────────────
Database
Migrations
Seeds
Tests
Documentation
Environment
Deployment

The most important concept is not the exact folder name.

It is the separation of responsibilities:

UI
 ↓
API
 ↓
Request Handling
 ↓
Business Logic
 ↓
Data Access
 ↓
Database

Once this flow is understood, the structure can be adapted to almost any full-stack technology.


Archive

More
Stories.

Back To Stories