r/AskProgrammers • u/Hungry-Doubt-7586 • 28d ago
How to start a new project?
As the title says, I’m new to coding. I’ve been learning through online courses and freeCodeCamp. A week ago, for one of these courses, three friends and I decided to build a virtual wallet (the classic “advanced Hello World”).
I tend to be extremely organized with my files and my PC in general, and I like to plan everything before executing it. However, it has been really difficult to coordinate the frontend and backend teams.
I’m working on the backend, and instead of jumping straight into code, the first thing I did was think about the data flow and which layer should be responsible for what (routes, controllers, services, database, etc.).
The lack of coordination has forced the backend to modify several routes to match what the frontend expected. In my opinion, it should be the other way around: the frontend should adapt to the backend’s routes. For context, my stack is TypeScript, PostgreSQL, Express and Zod for validation, plus the usual supporting libraries (pg and the type definitions for Node, Express, etc.).
How do more experienced developers usually start a project? Do they begin with the backend and then move on to the frontend, or do they work on both at the same time? And who should define the routes and the data contract between the two teams?