Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [project-structure]

The tag has no usage guidance.

1
vote
3answers
48 views

Is it a good idea to share repositories across microservices in Spring Boot Application?

We are migrating a desktop application into web based Spring Boot micro services application with a client imposed mandate of using their existing MySQL database, so all micro services share a common ...
1
vote
1answer
63 views

Managing a third party library that is used by multiple independent libraries

I am working on configuring the build environment for a C++ project that uses multiple libraries. These libraries are independent of each other, but they all depend on the same 3rd party library (...
0
votes
1answer
64 views

Cross-cutting concerns in package-by-feature structure

What is your suggestion on where to put cross-cutting concerns in a package-by-feature structured app? This aspect seem to be missing from most of the pro package-by-feature articles I have read. ...
-1
votes
1answer
219 views

Folder structure for a C project [closed]

I am wondering what is the recommended folder structure for a C project. I read several posts about using src, include, test, build folders. But what if I want to structure the project in modules? ...
3
votes
1answer
155 views

What's the best way to handle a large multi-file class in Javascript?

I have a very large class of 59 methods and about 3000 lines of code. I know that's far larger than most people would want, but the class represents a virtual machine, and most of the methods are run ...
0
votes
1answer
158 views

What is a proper way to structure a Python project consisting of smaller packages that have shared code?

I have been debating this question internally for a few weeks now and I keep coming up short in finding a good answer to the question. I feel an example would be more descriptive than just talking ...
2
votes
0answers
38 views

Where to specify drag-and-drop related meta data?

The structure of our project strongly separates the three different parts: core - data classes, POJOs, sometimes aggregated with annotations (e.g. for XML/JSON serialization) plugin - plugin for a ...
1
vote
1answer
277 views

Organizing Source files/classes in big projects in C++

I'm currently writing a bigger program in C++ and have reached a point were I get problems with the organization. I wonder if namespaces are a way out. I will try to explain what the program does and ...
1
vote
1answer
102 views

Collection of APIs making up one Application - How to manage?

We have inherited an application that is made up of small .NET web API's. Each API has its own Visual Studio SLN and git repo. All of the APIs are published to one folder ("All") and that folder is ...
1
vote
0answers
66 views

How to design the Unity Container?

I have three projects: WebAPI, Services and Repository. WebAPI has a reference to Services and Services has reference to Repository. Now I need to add a Unity Container for Services and ...
1
vote
2answers
777 views

How to deal with exceptions in DLLs?

I recently started working on an existing project written in C++ Builder. The application consists of a MainModule that loads LOTS of modules (DLLs). The MainModule itself is a DLL (there is a small ...
1
vote
2answers
257 views

Is it okay to put all your error handling on facade layer?

I am doing a Java Spring-Boot backend project and I am implementing a controller-facade-service pattern on my structure. So is it best to put all my error handling on the facade layer, while the ...
3
votes
3answers
794 views

How to deploy a junior programmer

I just hired a junior programmer and he will be 2nd real programmer next to me. Our software is structured in git with the gitflow workflow. I normally develop and push straight on the development ...
-1
votes
1answer
80 views

How to develop larger client-site in-browser apps in javascript?

I'm new to javascript environment (I have background in C++ physical simulations and game engines). With rise of HTML5 and WebGL I was thinking I'd like to try make some games/3D editors using ...
1
vote
0answers
268 views

Project structure with git submodules with common dependencies

I have two (and more in the future) Python projects that I'd like to package into a global package in order to import its modules and use them in another external projects in the future. This is how ...
0
votes
0answers
103 views

Where to place integration tests for client-server project?

The project is as follows: Application A that uses the client library for sending requests. Application B that uses the same client library for sending requests. Server A that uses the same client ...
2
votes
1answer
315 views

Cross-platform library: how to organize project?

Our company develops and sells a cross-platform C++ library. We distribute binary only versions for Windows, Mac OS X, Linux, iOS, Android, etc. The only source code the customers get is the header ...
-2
votes
1answer
536 views

Should I create two Django API projects or a single API project for different front end projects connecting to the same database?

We have created an LMS using Angular JS 1, Python(Django ) API and mongoDB as a database. Now we want to extend the LMS to make it a job portal. We have decided to create another front end project and ...
4
votes
1answer
56 views

Organizing Ad-Hoc Tooling in a Muti-Repo Structure

Imagine you have the following scenario. Your organization deploys some app core to its mission. For example if you're Stack Exchange, this might be the customer facing web server. Let's also say you ...
0
votes
0answers
42 views

Does it make sense to put WCF proxy lib into nuget?

In the enterprise environment we have a lot of windows programs and local WCF services. Programs are really light, they don't connect to the database directly, they use services. The problem is, that ...
5
votes
1answer
1k views

best way to install local package into docker image

I have a python package that I wrote and I want to use it within multiple docker builds. However, I can't just install my local package situated outside of Dockerfile folder. And I don't want to ...
11
votes
3answers
353 views

How do I start using Git for differing code bases from different servers?

Background: I've recently inherited a set of projects at my company and I'm trying to sort out some fundamental issues with how they've been handled. Namely, the previous developers (who are no longer ...
0
votes
0answers
299 views

How should a multi-container docker application be structured?

Say I have a fairly standard web app, I might have three containers to start: A static frontend (say an nginx server) A backend API server (say node) A database (say a mongo image) The question I ...
1
vote
2answers
108 views

As a high-level overview, how do I structure my server and client code with a persistent database?

The need for the client user is to perform tasks while they aren't currently logged in (so we can assume it is time-based). For example: A user logs in, performs tasks, logs out and gets a 'reward' in ...
2
votes
0answers
424 views

How to organize project code with googletest?

Generally, we like to have a common folder for common header files to be shared among various projects in solution but what about googletest since it needs access to all header files of project to ...
-6
votes
1answer
91 views

My project shows errors unexpectedly. Is there a good method that can be used to plan a project before starting and deploying it? [closed]

I have completed a project. But errors unexpectedly occurs anytime when the user inputs data in it. Yesterday my program was performing very well. But today when the client tested the project it had ...
1
vote
1answer
240 views

Where to place Docker-related configuration files

Many projects need more than a Dockerfile or a docker-compose.yml in their root to work out of the box (e.g. for local development or a demo): For example a web application might need its runtime, a ...
4
votes
2answers
381 views

Unit Test : Do I need to make an unit test for each class in my project

I have recently tried to to implement unit tests on a Java Web Application my project is built on MVC design architecture and uses Spring & JPA Hibernate and JSF here is a package tree -src -...
1
vote
1answer
626 views

Is it better to have separate projects for Frontend and backend?

I am running an ecommerce website built in Java using Spring and Hibernate. If I have to briefly describe current architecture then it is like this: I am having two projects by name - store front and ...
2
votes
2answers
216 views

What is the proper structure for maintaining single page python scripts

I am a self-taught programmer, and started my job as a PHP developer,in a small company. I then got some work to write python script. I didn't have any senior with proper Python experience. So I ...
0
votes
1answer
80 views

What is separating code by type vs. by function in called? [closed]

In for example web-frontend development, there are two main ways to structure a project: client -js -component_1.js -component_2.js -html -component_1.html -component_2.html -css -...
10
votes
1answer
1k views

Avoid dependency version conflicts?

Any Java project that uses my jar, will almost certainly have an additional dependency on another jar, which my jar also contains as a dependancy. Problem is, that other jar has multiple versions. ...
1
vote
4answers
352 views

Is it common to write File Parsers in higher languages like Java?

I work with an older framework (15 years+) at work which is fully built on Perl. Its main tasks are calling external programs via command-line calls, parsing their output and presenting some of the ...
1
vote
5answers
2k views

Should automated unit tests be part of the build?

Should automated unit tests be a part of the build process, or should they be manually run when someone makes changes to the code instead? To me it seems like making it part of the build rather than ...
2
votes
1answer
625 views

Project structure for cross platform?

How do I make a good project structure that allows me to work on Linux as well as Windows with Visual Studio? So far I've only been using my Linux machine when working on my project and I used this, ...
4
votes
4answers
282 views

If taking over code of a third party, what are the delivarables?

My team has to take over a project from an external company. They've provided the last state of trunk to us as a zip file and are trying to convince us, to accept this as a complete delivery of their ...
-5
votes
1answer
114 views

Use Angular2 for website and API for mobile application with single Web API project

We are working on a project to develop a solution with a large number of modules in which the client wants a website as well as mobile application. As a team we're working using ASP.NET MVC and Web ...
1
vote
2answers
407 views

Is it simply Cleaning or Refactoring?

I am working on a project in C++ and I have a big CPP file with several function in it. I am actually working on splitting all this function into smaller cpp files to make it more readable. I was ...
0
votes
1answer
2k views

Project structure and folder naming

I have a cpp project which source code I want to split into 3 groups and want to define structure for these files by creating folders with nice name. First group are files related to socket ...
3
votes
1answer
614 views

Does the Spring Data Repository implementation violate the principle of loose coupling?

So, at the moment I find myself building my c#/.net (web) application ( or folder/project/package-...) structure often like this, thinking about it in a "somewhat onion-architectural way": myApp -...
-2
votes
1answer
94 views

Is it a good practice to separate one function into one file ? [closed]

For example, lodash library here separate each function into each file ? Since this is a popular library and this library organize their files into this way. there must be based on some good practice ...
3
votes
1answer
382 views

Package-by-feature confusion for libraries

As I understand it, it's generally recommended to package by feature rather than by layer. This promotes higher levels of abstraction and modularity between classes. I can understand how this works ...
5
votes
1answer
1k views

Plan, Build, Run organization philosophy

I am looking for some logical explanation of how software development fits into a Plan, Build, Run model of an organization. I am struggling to find anything which explains how software development ...
1
vote
0answers
51 views

Am I using the right frameworks effectively?

I am working on a large scale application that has both a web portal and a mobile application so therefore I need to develop an API.. I have decided to go with the following structure:- Sailsjs (...
1
vote
0answers
1k views

Modularizing level of Angular 2 application

my question is related with Angular 2 Modules (@NgModule). Previously I’ve worked with angular 1.5.8 on huge business application and I’ve got used to Angular 1.x practices. Important background: ...
0
votes
1answer
49 views

Where to place Thrift generated code

I am working on a project that is using Thrift and as a result has auto generated code. Firstly, what are the pros and cons of placing this generated code in SCM vs not and insisting developers ...
3
votes
1answer
59 views

Separations of concerns and dependency management in automation project

I'm working on an automation project in C# and it has 2 wrappers: DesktopAutomation and BrowsersAutomation. The first has a dependency on UIAutomation.dlls (access to the MS desktop elements) and the ...
-1
votes
2answers
676 views

Java EE Web Application directory layout

Introduction I am working on a Java EE Web Application that is a basic CRUD app. It is built with Servlet and JSP technologies, without any Frameworks. I am doing it to make my hands dirty in plain ...
0
votes
1answer
405 views

Does C# project with configuration file only seem to be an architecture flaw?

I have multiple related projects in one Visual Studio C# solution, which in general have similar architecture of WCF business logic services and ASP.NET clients. In order to host these services, I ...
45
votes
3answers
8k views

Folder-by-type or Folder-by-feature

I make use of an AngularJS style guide. Within this guide there is a style called folder-by-feature, instead of folder-by-type, and I'm actually curious what's the best approach (in this example for ...