This is a React Typescript Project about fetching Star Wars Graphql API
-
Open your terminal and run:
yarn or npm install
-
Run the project with:
yarn start or npm run start
This Project has a dynamic system If you want to add a new page follow these steps:
- Open src/utils/table-fields/dummy file. Just read Informations
Create your dynamic query request just like in the photo.
- If you want to add tablefields. You have to dynamically set it in the helper file. Open src/utils/helpers
allfilms: filmCollapseTableFields, // allfilms = pathname, filmCollapseTableFields your new table field variable
Feel free to contribute and make this project even better.