Suggested React folder structure

We regard each of our Apps as a single unit, even if it is using backend services hosted in our own servers, some Lambda micro services on AWS and other distributed assets. I have not abstracted folder names, they are vry clear what is what and where it runs. The env is shraed btween all our project and sits under /etc/react/..env files

app_name ---- |frontend-------|-deploy-------deploy.sh
              |               |              other deployment scripts
              |               |
              |               |_public
              |               |_src_
              |                     |_components_
              |                     |            |_pages  
              |                     |            |_[any app specific components]                                
              |                     |_services___
              |                     |            |_any code that connects 
              |                     |              to other assets. Pure JS.
              |                     |_util_____
              |                                |____Any helper JS specific for
              |                                     for this app.
              |_backend_
              |         |_backend TalisMS services hosted on our servers. (PHP).
              |
              |_lambda__
                        |_lambda function code, Node.js
 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close