Questions tagged [project-structure]

Refers to layout of folders and components to help organize a project's files, whether code or resources

482 questions
16
votes
6 answers

Android Studio: “new module -> import existing project” vs. “import module”

What I have: Four independently working Android modules: MyProjectMainModule, a main container application, attached to MyProject MyGradleModule, a library, with all necessary components built during gradlew process. MyPreGradleModule, a library,…
15
votes
0 answers

Microservices naming convention with API and background workers (MessageBus/ScheduledTasks)

To expand on this existing question Microservices: Worker roles, APIs or both?: I have seen mixed examples of Microservices implemented as worker roles processing requests off a queue and/or as APIs (REST). Supporting asynchronous scenarios, a…
14
votes
3 answers

What is the best practice for the location of Java application configuration files?

Is there a best practice for where configuration files should be stored in a Java project. The file type is a Java properties file in this case, but I do use other file types in other projects. Would the recommendation vary from stand alone…
James McMahon
  • 48,506
  • 64
  • 207
  • 283
14
votes
2 answers

Recommended WPF Project Structure?

I'm a stickler for good Visual Studio Solution and Project structures. I'm about to start a WPF proof of concept piece of work. Can anyone recommend some WPF Project structures they have used and found worked well? Here…
Lee Englestone
  • 4,545
  • 13
  • 51
  • 85
14
votes
5 answers

Repeating module name for each module component

The famous Best Practice Recommendations for Angular App Structure blog post outlines the new recommended angularjs project structure which is now component-oriented, not functionally-oriented, or as named in the initial github issue - "Organized by…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
14
votes
7 answers

Intellij IDEA 13 - Can't open Project Structure dialog anymore

as already described in title, i'm not able to open the project structure dialog window in intellij anymore. neither the shortcut (Ctrl+alt+shift+s) nor the menu element under File -> Project Structure nor the little button in the upper right corner…
ZioN
  • 453
  • 1
  • 4
  • 10
13
votes
1 answer

How to make a Visual Studio C++ project structure match the file system structure?

I'm currently using Visual Studio 2010 Professional. In my entire experience with Visual Studio (since version 6), a C++ project structure was always virtual. In other words, when I move files around and create folders in the project, this had no…
void.pointer
  • 24,859
  • 31
  • 132
  • 243
13
votes
4 answers

How to re-add module to a project in IntelliJ?

I had a project with small code sample snippets, grouped by modules, like this: Each module has individual POM file and no (apparently) global one. Previously I had one more module, called Wikidata. At some moment IntelliJ said, that this module…
Dims
  • 47,675
  • 117
  • 331
  • 600
12
votes
4 answers

Scripts in python package

I develop python application which i decided to turn into package to be installed by easy_install or pip later. I've used search to find several good sources about directory structure for python packages See this answer or this post. I created…
Konstantin
  • 24,271
  • 5
  • 48
  • 65
12
votes
2 answers

Structuring python projects without path hacks

I have a shared python library that I use in multiple projects, so the structure looks like this: Project1 main.py <--- (One of the projects that uses the library) ... sharedlib __init__.py ps_lib.py another.py Now in each project's…
12
votes
3 answers

Express.js Project Structure

I found that Express has an application generator, however the documentation does not explain the purpose of each directory and file. If someone could just give me a short explanation of which files I should be putting where, that would be much…
pzp
  • 6,249
  • 1
  • 26
  • 38
12
votes
3 answers

Is it bad practice to write a whole Flask application in one file?

I'm currently writing a web application in Python using the Flask web framework. I'm really getting used to just putting everything in the one file, unlike many other projects I see where they have different directories for classes, views, and…
user1814016
  • 2,273
  • 5
  • 25
  • 28
12
votes
8 answers

Reasons to split project into multiple projects?

What are common reasons to split a development project (e.g. ASP.NET MVC application) into multiple projects? Code organization can be done via folders just as well. Multiple projects tend to generate circular reference conflicts and increase…
Alex
  • 75,813
  • 86
  • 255
  • 348
11
votes
2 answers

Clean solution (project) structure with EF, Repositories, Entities

I like to keep the structure of the project as clean as possible. Sample: --BlogApp.sln --BlogApp.Data BlogModel.edmx (the EF mappings) Post.cs (I end up having partial classes in here with attributes) --BlogApp.Domain …
11
votes
2 answers

What Project Layer Should Screen DTO's Live In?

I have a project where we use screen DTO's to encapsulate the data between the Service Layer and the Presentation Layer. In our case, the presentation layer is ASP.Net. The only classes that know about the DTO's are the service layer classes and the…
Scott Muc
  • 2,873
  • 27
  • 38
1 2
3
32 33