Refers to layout of folders and components to help organize a project's files, whether code or resources
Questions tagged [project-structure]
482 questions
1
vote
4 answers
Should the UI reference the Repository?
I have four assemblies; UserInterface, BusinessLogic, DataAccess, Common.
The User Interface references the Repository that is in the DataAccess, is that bad practice? Should I create pass through methods in the BusinessLogic so that the…

marvc1
- 3,641
- 3
- 25
- 34
0
votes
1 answer
What files are used when compiling Eclipse java applet and android projects?
If I put files not related to the code (e.g. photoshop source files, conceptual graphs, increments of code in another folder) in an Eclipse project, will those files be added to the resulting file after compilation?
Thanks in advance.

amlabs
- 3
- 1
0
votes
0 answers
Structuring/Organizing multiple dependent C++ libraries from different projects
I have a large project split up into smaller sub-projects. The dependencies look somewhat like this:
ext. libs are dependencies from third party sources
core implements core functionality which is common to several projects.
lib1/lib2 are the…

Patrick
- 9
- 3
0
votes
1 answer
When to use multiple projects on the same Visual Studio solution?
I'm working on a WinForms app, inside a bigger, main WinForms app that launches other Forms.
You have a big menu with apps you can click and launch (mine is one of them). At the beginning of the project, I've been recommended to create everything…

funk4del1c
- 3
- 4
0
votes
0 answers
Refactoring Folder Structure for React and TypeScript Project with Three.js Business Logic
I'm working on a React and TypeScript project that consists of three layers: business logic (implemented using Three.js), view (React components), and store (communication between business logic and view). I'm planning to refactor the project's…

ellis
- 181
- 10
0
votes
0 answers
How do I ensure I can run a Python module directly via __main__.py and via the -m option?
I have a Python project (an application) with the following project structure (adapted from https://realpython.com/python-application-layouts/#installable-single-package):
Helloworld/
├── helloworld/
│ ├── __init__.py
│ ├── __main__.py
│ └──…

dende
- 23
- 4
0
votes
1 answer
Why can't sbt/assembly find the main classes in a project with multiple subprojects?
We're combining two of our Scala projects because they share a lot of functionality. I'm setting up the new repo, and have the following build.sbt:
ThisBuild / scalaVersion := "2.13.10"
libraryDependencies += "org.scalatest" %% "scalatest" %…

James Kelleher
- 1,957
- 3
- 18
- 34
0
votes
0 answers
Intellij folders not showed
I have a project tree like this:
Root Folder:
-- Folder A
-- Folder B
-- Folder C (src)
-- Some other files
Inside folder C, there is the build.sbt and some other folders.
To make intellij recognize that the project is a scala one, I have to open it…

salef
- 1
- 1
0
votes
1 answer
IntelliJ idea does not properly see modules of generated Ktor project. Android Studio does see them
.0. I imported a project to the PC (specifically here = generated Ktor project, although I've seen such behavior before with Compose Desktop projects)
Generated here
.1. IntelliJ Idea doesn't recognize it as a project
When I open the same project…

Nikita A
- 51
- 1
- 4
0
votes
1 answer
How to avoid making dependencies available for all packages in the module?
Coming form a .NET background, I am currently trying to adjust my first go project to a more go-typical project structure (similar to this). The thing I don't understand is, how to avoid dependencies accidentally creeping into packages where they do…

user4758246
- 575
- 5
- 13
0
votes
0 answers
Detecting python modules from different directories in my project structure
I have a project structure in VSCode like this:
Project/
.venv/
virtual environment containing pip packages like numpy
config/
__init__.py
useful scripts
src/
program.py
I want program.py to be able to import packages from the…

Lavaa
- 25
- 4
0
votes
0 answers
Python - Creating installable packages from different unique project structure
My goal is to establish a project structure that will limit future headache. The project I am working on has 3 different packages that need to be installable and tested, the structure looks something like this:
my-project
- src
-…

wisenickel
- 346
- 4
- 16
0
votes
0 answers
Python project structure many main.py endpoints
I currently have the following project structure in python:
| project
├── module_1
│ ├── __init__.py
│ ├── class_1.py
├── module_2
│ ├── __init__.py
│ ├── class_2.py
├── main_1.py
├── main_2.py
├── ..
├── main_n.py
├── set_up.py
Because of…

Joep
- 31
- 4
0
votes
0 answers
Python project structure for 2 components sharing the same internal library
I am building a project with 2 components:
An event listener
An API
For both components to work, they need to use an internal library I build that is the network connector.
So the project structure is like:
src
--listener_app
--__init__.py
…

Víctor Rosillo
- 47
- 5
0
votes
0 answers
Nextjs - Images in Assets or Public
I'm wondering what is better approach?
For example if I have some icons that are used in components.
assets folder approach ( located in root/src/assets/....)
import ListItemIcon from '@assets/ListItemIcon'
const ListItem = (props) => {
return…

MarekFodor
- 21
- 2