Index
Description about the purpose of the application and the problems it aims to solve. You can also briefly list the main features and then detail them in a How to Use section. If necessary, add images or GIFs to further illustrate.
List of the main technologies and frameworks used in the project.
Required:
Recommended:
Instructions on how to run the application in a local development environment.
- Clone the repository
git clone https://github.com/MeiFagundes/React-TypeScript-RTK-Template.git
- Install the dependencies
yarn install
- Start the application
yarn start
-
Save the query to a .graphql file at src/repositories/queries or the mutation at src/repositories/mutations
-
Run the following script to generate the .generated.ts file
yarn g
-
Add the reducer from the generated class to the store at src/app/Store.ts
import { api as getExchangeRatesAPI } from '../repositories/queries/GetExchangeRates.generated'; const store = configureStore({ reducer: { (...) [getExchangeRatesAPI.reducerPath]: getExchangeRatesAPI.reducer, }, (...) });