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.example
file to.env
and fill in the environment variables in case you need to change the default values. -
Run the app
npm run dev
To check for linting errors in your code, run:
npm run lint:check
To automatically fix linting errors in your code (if possible), run:
npm run lint:fix
To check for formatting errors in your code, run:
npm run format:check
To automatically fix formatting errors in your code (if possible), run:
npm run format:fix
Run:
npm run test
Make sure you have the React
app running on localhost:5173
before running the e2e tests.