A Collection of client side apps to facilitate file upload
The folder structure for the frontend react application will be as follows:
my-app
├── build
├── public
│ ├── favicon.ico
│ ├── index.html
│ └── manifest.json
├── src
├── .gitignore
├── package.json
└── README.md
buildis the location of the final, production-ready build.publicis where the static files will reside.srcis where the dynamic files will reside.
src will look something like this:
src
├── components
│ └── app
│ │ ├── app.css
│ │ ├── app.js
│ │ └── app.test.js
│ └── index.js
├── images
│ └── logo.svg
├── index.css
├── index.js
└── service-worker.js
All the react components will be found in the components directory. The components/index.js file will serve as a barrel through which all sibling components are exported.
Since we are using storybook and CDD, each component will be its own directory with the component code, styling, tests, as well as .stories.js file.
This is pretty much what create react app provides out of the box, except slightly modified and adjusted to better suit CDD and focusing on component-first design and development.