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-------|
              |               |              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 TalisMS services hosted on our servers. (PHP).
                        |_lambda function code, Node.js


Leave a Reply

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

You are commenting using your 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