Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.37 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.37 KB

jag-file-submission frontend

A Collection of client side apps to facilitate file upload

Frontend Folder Structure

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
  • build is the location of the final, production-ready build.
  • public is where the static files will reside.
  • src is 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.