Skip to content

How to use

Embrik Einang edited this page Feb 16, 2018 · 9 revisions

Detailed explanation about how to use the project. Include all active features etc

Frontend project structure:

Each component shall be placed under a new folder in the Component-folder. This is to ensure that every developer contributes to keeping the project neat and tidy, while ensuring the scalability of the project. Tests for every component should be created under these general guidelines.

The structure for App will be the same as created by Create-React-App. Only new components will be placed in sub-folders.

We recommend to put the test files (or tests folders) next to the code they are testing so that relative imports appear shorter. For example, if App.test.js and App.js are in the same folder, the test just needs to import App from './App' instead of a long relative path. Colocation also helps find tests more quickly in larger projects. [1]

[1] https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#running-tests

Clone this wiki locally