Frontend and Backend
{their roles and boundaries between them}
Introduction
01
About me
Johnny Seyd
years of experience in web technologies�(30 years of coding, 16 years management)��� 18 years father� 14 years consultant� 12 years entrepreneur� 8 years speaker/lector
4 years startup founder
Backend
02
BE as API
Who is the BE developer here?
Responsibilities of the API
System and data are manipulated only via API!
What you won’t find on the backend?
“The backend is for introverts!”
What you can LOVE on the backend?
Frontend
03
FE as Web App
FE as Web App
Who is the FE developer here?
Responsibilities of the FE
The user sees and evaluates only the frontend!
What you won’t find on the frontend?
“The frontend is for extroverts!”
What you can LOVE on the frontend?
04
The Boundary Between
Who is the Full-stack developer here?
Why to separate FE & BE?
Where is the boundary?
FE
BE
?
Where is the boundary?
FE
BE
API
Where is the boundary?
FE
BE
API
Where is the boundary?
FE
BE
API
code / system
code / system
doc / specification
What can be a bad idea
05
Backend-Centric API Development
Frontend-Centric API Development
No King - Agree Among Yourselves
What Works for Me
05
The Most Important Documentation
The Most Important Documentation
The Most Important Documentation
Spec prepared by an Analyst
The Design-First Approach
Writing REST API documentation in advance.
Also known as the "design-first" approach - �helps ensure that all stakeholders have a clear understanding of the API's functionality before development begins. This approach can lead to better-designed APIs, fewer misunderstandings, and a more streamlined development process.
What a good API spec should contain
Examples
request
{
response
{
{
JSON body�structure
Examples
Communication
Frontend�Developer
Backend�Developer
Analyst
(owner of the spec)
Why is Swagger not enough?
Useful tools and libraries
Mock Service Worker
/package/msw
Frontend
ZOD +
/package/zod
Frontend
TSOA
/package/tsoa
Backend
What AI tools .. �are you using?
Powered by AI
???
Frontend�Developer
Backend�Developer
Analyst
(for writing the spec)
Summary
06
API Specification�is the most important document
Design-First Approach�with an experienced analyst
Understand the Other Side�don't overstep boundaries but try to help
Involve Useful Tools�that enable collaborative work and sharing
Try to get AI on Board�as soon as possible �and under any circumstances
FE and BE are both important�one needs the other, �cooperation is necessary
Q&A
07
THANK YOU