Most developers lose time not in writing code, but in navigating messy local environments. This article walks through a clear, practical way to organise your repositories on your development machine. You will learn how to structure folders by purpose, reduce friction when switching projects, and build a setup that stays clean over time. The goal is simple: less searching, more building.
I’ve built many projects on my GitHub over the years. Check them out for inspiration or contribution! I’ve got plenty more content coming your way on my LinkedIn! Hit that follow button so you don’t miss out!
Thanks for reading The Healthy Scientist: Build Using AI With Healthy Habits 🔥! Subscribe for free to receive new posts and support my work.
This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.pierrehenry.dev
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
hello hello i hope you are well and in today's video what i'm going to show you is how you can organize your projects your workflow on your local computer in the most effective way so there are a lot of different approaches to to follow when it comes to organize your projects on your local machine but i will show you the most common
SPEAKER_00one i would say it's kind of a convention I have been working in the industry for the last 12 years and I have seen the same convention almost everywhere. It's good also to keep the same convention in your team because if you have all of the git reports in the same folder than your other teammates, it's just easier to debug if you have to jump to his or her computer and vice versa. So I recommend you also to be consistent in how in your organization how they git clone
repos and how they do things but i will show you the most common one and then i will show you some other alternatives so the most common one is to have code the code folder name in your
SPEAKER_00main directory so in my case i mean pierre my home directory and in my home directory i'm going to create a folder code now it could be also only lowercase like this in my case i like to start with an uppercase to capitalize the c but it's up to you if i jump to safari code folder capitalize. It's good because it depends of your system. On Linux, for instance, if the C is uppercase, it will be at the top when you look in your terminal.
SPEAKER_00Now on Windows, you don't have this, but on Linux, that's also the reason why, like, so if you have this code like that, it will directly highlight your folder code. It can be handy. And this is also the reason why the readme and the license files are usually in uppercase in Git Repos. It's because they are showing up the first. So why? readme is uppercase and you see the reason is due to the the distribution the operating system yes to make it stand out because it contains
essential information indeed readme license file maybe a little bit less but yeah and um and this this is
SPEAKER_00the historical reason So in our case, in my case, usually I have it written this way. You can have it lowercase too. Just be consistent also if you have different machines at home, personal computer. It's good to always organize all of your projects inside of the same folder. Otherwise, you have to rethink, oh, where are my projects? Usually, you know, we jump, we do CD, and we don't even think where is my specific folder. We know automatically. It's like when we drive, we don't even think where I have to go.
SPEAKER_00It's our subconscious is driving for us. It's the same here. with the folder names. So the naming is important. You can have a different flavor and it's projects. You could have projects instead. Not as common as code, but you could also have everything in the projects folder. On Windows, it will be a backslash, but it will be the same. Like for me, I'm going to create code like this, and then I'm going to go inside. On Windows, you will have backslash backslashes, but otherwise you can do exactly the same. And
what else um you before in the past and in my case when i started usually i would have all of my projects inside of a triple w like this nowadays is less common the
SPEAKER_00triple w and you had um triple w For the hosting, I believe it's due to the, on the web server, especially Apache server, you would still have the triple W. Public HTML, yeah. And you could have other names. I'm just looking here. Was it stdocs, something like this?
You may also have seen this convention, stdocs and having everything in stdocs.
SPEAKER_00Well, that's a bit outdated and it's mostly for PHP environment when you are working with PHP, PHP websites and applications written in PHP. But for most of your projects, it will be either code or projects. And now when you are working in big companies where they do have not only a few Git repos, but a lot of different repos in a lot of different brands, that will be something different we have to take into account. So in my case, I will first start with a small project.
SPEAKER_00Here I do have a food meal snap app I'm building during my spare time. So that's a frontend, that's a React Native one. And that one is the backend in Golang. I will clone both of them. I'm going to go inside of my code. I'm already inside of my code folder. That's good. And here, instead of directly cloning this one like that, the backend and then the frontend, and after I will work on a different project that will not be related to this food
SPEAKER_00tracker, it will be a bit messy, right? So what I'm going to do, I'm going to create one folder per project. So here I'm going to have food tracker, And inside, I'm going to clone. I will do a CD food tracker to go inside of the directory. And then I will do a git clone food tracker backend. And I will do the same here, git clone food tracker, which is the React Native app. have an idea so don't worry the g is for git git clone but in
your case probably you will have to do git anyway this is like a private repo so you will not have access to this one but it's just to show you how you would organize your different
SPEAKER_00projects in on your local machine so now I have the React Native frontend app here on the inside of the FoodTracker folder and then the backend. And now if I go to the parent folder, I have one folder and that's my project. And I really recommend you to do it this way. Usually when you are working for a company, you don't have one single project, and that's all. You would have different projects. And you have one project with a backend, the API,
and then the frontend, and then maybe app.
SPEAKER_00So you have app, API, frontend, or app, backend, API. Backend would be usually the API, depending on your organization and how they structure things. Maybe you would have API, and then backend, and then frontend, and then app. Then you may have different brands inside of the company. If you do have different brands, for instance, you are working for company A, company A acquired another company, for instance, OpenAI acquired Winsurf, or like Microsoft, you would work on GitHub, on VS Code, on Copilot. You have three projects you would work on.
like or i'm not sure like a lot of companies that have you know different brands and then you have one folder per brand and inside of that folder you would have one folder per project let's say in my case like i'm working for booking i have done this diagram to show you they have multiple brands let's say i do work for agoda priceline and booking i will have one folder for each and inside of each folder i
SPEAKER_00would have the so inside of each folder i would have like It depends if it's microservices or not. So if it's microservices, then you'd have a lot of different folders. So again, one folder per project. And finally, inside of each folder, I would have all of the subfolders. But for Booking, maybe I would only have frontend, API, some backend folders too, iOS, Android folders. If they do use microservices, I forgot if they do or not. I believe at some point they were, so I believe they still do.
SPEAKER_00I would have... multiple folders for all of the microservices now a lot of organizations they are moving back from microservices to mono mono repo but you would still have one booking folder and then you'd have all of the subfolders the child folders of the mono repo that you know like so you have the pound folder would be booking and then you would have all of the small folders of your mono repo that would include API,
SPEAKER_00backend, frontend, other React things, components, share components, and different packages, then apps, and maybe CMS. like the homepage website. But organizing your workflow that way will be super good and super efficient for you because you will know, oh, now in what folder I am, oh, now I'm on that brand. Of course, it depends on some of the packages they have. Usually, you would have shared packages, but it's always good on your local computer to have all of the
needed folders
SPEAKER_00inside of... main projects so you would have the subfolders and then you would have the main folders that would be the projects and then code that would be where you place all of the codes you know directly when i go in inside of code i have all of my git repos stored inside of multiple brand folders or directly project folders and again code could be replaced by projects that's just a matter of preferences the main to best name for where you store your code is either code or projects
SPEAKER_00That's all for today. I wish you a beautiful coding journey. And let me know in comments the way for you to organize your code and how you store your different projects, regardless if you are a vibe coder, someone who doesn't know anything about engineering or a senior software engineer. I wish you a beautiful day. And again, consistency is key at the end of the day.
Most mistakes in software happen too late. In this video, I show how learning fast, prototyping early, and iterating daily helps you avoid wasted effort and bad decisions. This mindset improves product quality, delivery...
We love blaming our tools when things go sideways. But here’s the thing: it’s usually not the tool that’s the problem. It’s how we’re using it, the habits we’ve built around it, or the fact that we trust it without...
Software is one of the best tools we have to solve real problems around us. In this video, I break down the techniques I personally use to think more clearly, approach problems properly, and become a better software...
Belief in your abilities as a software engineer transforms your approach to challenges. This post explores why self-confidence matters, how it impacts your progress, and practical ways to grow your skills while taking...
Today, I’m sharing a set of principles to help you grow as a product engineer and become a stronger, more persistent thinker. There are many valid ways to approach the work. None of them are inherently wrong. The...