REST API - Yet Another UI
Dávid Szabó Jul 9
I'm working on my new product and it's my task to develop the backend.
It's not a complicated tech stack, we are going only with a few pieces for an MVP:
MongoDB <-> Node.js <-> React Native (Android & iOS)
It's been a while since I've worked on a not small project. I'm trying to decouple the Service Layer from the "Web Service (Layer)" (REST API), and I just realized something:
REST API is just a UI
This might be a bit silly or bold statement, but if you think about it then it makes sense in my opinion. When I realized that, the tech stack changed:
MongoDB <-> Core (Node.js) <-> REST API (Node.js) <-> React Native (Android & iOS)
All of these pieces are decoupled.
I might be stupid, but this is a serious realization for me.
I just wanted to share this with you guys and would like to hear what you think.
We never stop learning and hopefully you will write something that will make me realize something very important.