C
C
CaptainJustness2019-07-09 19:32:18
Mobile development
CaptainJustness, 2019-07-09 19:32:18

How to create a competent directory structure of a cross-platform project?

Hello. As a couple, I think about different things, this time, whether I'm doing the right directory structure for various projects.
Currently I have a Projects directory which includes web, mobile, etc. And it turns out that if I need to make both a website and a mobile application for project "A", then a folder for the project is created in the web and mobile directories.
\Projects\web\MyProject\myproject.ru\public_html
\Projects\web\MyProject\sub.myproject.ru\public_html
\Projects\native\MyProject\native\myproject-app
\Projects\web\MyProject\psd\..
Not it leaves the feeling that this is not right, that one project is but scattered across categories. It is not convenient to transfer in one folder, you will have to copy from there and from there. Not really, right?
And so, let's assume the following input data:
we have a MyProject project, a web part myproject.ru, sub.myproject.ru, a mobile application myproject-app, and there are various PSDs for projects, suppose. The following project directory structure comes to mind:
\Projects\MyProject\web\myproject.ru\public_html
\Projects\MyProject\web\sub.myproject.ru\public_html
\Projects\MyProject\native\myproject-app
\Projects\MyProject\psd \..
or
\Projects\MyProject\web\myproject.ru\public_html
\Projects\MyProject\web\sub.myproject.ru\public_html
\Projects\MyProject\native\ios
\Projects\MyProject\native\android
\Projects\MyProject \psd\..
or
\Projects\MyProject\myproject.ru\public_html
\Projects\MyProject\sub.myproject.ru\public_html
\Projects\MyProject\ios
\Projects\MyProject\android
\Projects\MyProject\psd\..
In short, I don't know... How the structure will look right. Someone might think what the hell is he even soaring about. I am a perfectionist and this is important to me. To be comfortable and correct. Maybe there are articles about this, or has someone already determined the ideal structure?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-07-09
@rockon404

As far as I understood from the context, we are talking about react + react-native. You can organize the structure, for example, like this:
5d24c72a1c7a2360205282.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question