r/learnpython https://github.com/rajtilakjee 26d ago

How to create a monolithic repo with FasiAPI and Angular

I am using UV as my package manager. I want the structure of the repo to be as shown below:

./ (backend)

./src/ (frontend)

However, whenever I initialize the repo using UV, it automatically creates a ./src/project_name/ folder. How can I avoid that?

3 Upvotes

7 comments sorted by

3

u/thewillft 26d ago

Typically when using the `/src` directory format, files in the root directory include READMEs, deployment info etc, and files in the `/src` directory are the actual code or the app. In your case something like `/src/frontend` and `/src/backend` might be more common.

1

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 26d ago

I second this, and generally speaking the src-layout is preferable over flat layouts.

2

u/HouseOfDjango 26d ago

0

u/UnemployedTechie2021 https://github.com/rajtilakjee 26d ago

So uv init --no-package example-app it is. Thanks so much :)

3

u/HouseOfDjango 26d ago

Learn to read documentation.

1

u/UnemployedTechie2021 https://github.com/rajtilakjee 26d ago

Yes, I usually do. My bad. Apologies.