Skip to content

VectortheGreat/starwars-apollo-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Star Wars API - GRAPHQL & MATERIAL UI

This is a React Typescript Project about fetching Star Wars Graphql API

Usage:

  1. Open your terminal and run:

    yarn or npm install
  2. Run the project with:

    yarn start or npm run start

Development:

This Project has a dynamic system If you want to add a new page follow these steps:

  1. Open src/utils/table-fields/dummy file. Just read Informations

Create your dynamic query request just like in the photo.

  1. 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.