Skip to content

Instantly share code, notes, and snippets.

@akkikumar72
Last active February 13, 2019 15:30
Show Gist options
  • Save akkikumar72/10dc70b2e931a4273441e46d2596c929 to your computer and use it in GitHub Desktop.
Save akkikumar72/10dc70b2e931a4273441e46d2596c929 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
  • 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.

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

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