| Folder | Description |
|---|---|
src |
Contains all the source code for the frontend. |
src/components |
Contains all the React components. |
src/screens |
Contains all the pages of the application. |
src/context |
Contains the React Context Providers unless you are using a global state management library like Redux or Zustand. |
src/hooks |
Contains all the custom hooks. |
src/services |
Contains the services that interact with the backend, E.g. Axios, Fetch. |
- Install dependencies
npm install-
(Optional) Copy the
.env.examplefile to.envand fill in the environment variables in case you need to change the default values. -
Run the app
npm run devTo check for linting errors in your code, run:
npm run lint:checkTo automatically fix linting errors in your code (if possible), run:
npm run lint:fixTo check for formatting errors in your code, run:
npm run format:checkTo automatically fix formatting errors in your code (if possible), run:
npm run format:fixRun:
npm run testMake sure you have the React app running on localhost:5173 before running the e2e tests.