Skip to content

Instantly share code, notes, and snippets.

@akkikumar72
Created February 13, 2019 15:26
Show Gist options
  • Save akkikumar72/3f2d4ad35272087803408fe9a5856c0a to your computer and use it in GitHub Desktop.
Save akkikumar72/3f2d4ad35272087803408fe9a5856c0a to your computer and use it in GitHub Desktop.
Folder structure for testserver frontend

Folder structure for testserver frontend

For JavaScript Every component(functionality) should have its own folder inside src/ comprises of componentName.test.js & componentName.scss file

Note: If that component doesn’t have any custom styles then we can get rid of .scss file

Every route in url should have a corresponding component inside containers folder e.g if url is login then /containerloginLoginPage.js/

classNames inside of components should be camelCase.

For Scss All the commons styles should be inside of styles folder under commons folder

  • We will use partials(e.g _table.scss) inside of styles/common folder For className : its will be hyphen(-) separated if its 2 words e.g execution-table

For Test case Respective file will be inside of component_container with name as component.test.js_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment