Open yogeshtakeo opened 1 year ago
Name : Annish Singh Group : 3 (Annish, Nayan, Yash) Github : https://github.com/RoneshSingh/Product-Displaying-Page-with-Redux-Toolkit-Query Github Forked From: https://github.com/YashKharel19/Product-Displaying-Page-with-Redux-Toolkit-Query
Name: Nayan Main Github Link: https://github.com/YashKharel19/Product-Displaying-Page-with-Redux-Toolkit-Query Forked Github Link: https://github.com/GM-Frost/Product-Displaying-Page-with-Redux-Toolkit-Query.git Team 3: (Anish, Nayan, Yash)
Name: YASH Main Github Link: https://github.com/YashKharel19/Product-Displaying-Page-with-Redux-Toolkit-Query ULPOADED MAIN SKELETON Team 3: (Anish, Nayan, Yash)
Name: Onurcan Main Github Link: https://github.com/shreeshakhadka/ReduxToolKit Forked Github Link: https://github.com/onsever/ReduxToolKit Team 1 (Shreesha, Bijaya, Onurcan)
Name: Shreesha Khadka Github URL: https://github.com/shreeshakhadka/ReduxToolKit Group1 : Shreesha, Onurcan, Bijay
Name - Bijaya
Main Link: https://github.com/shreeshakhadka/ReduxToolKit
Forked Github Link: https://github.com/bjornbaniya/ReduxToolKit
Team - 1
Task: Product-Displaying-Page-with-Redux-Toolkit-Query
šDuplicate Submission
Name: Ngawang Sherpa Main Github Link: https://github.com/ngawangsherpa/ReduxToolkitQuery Team 2: (Ngawang, Swastika, Shailendra)
name : swatika singh github link : https://github.com/swskasingh/ReduxToolkitQuery group 2
Name: Shailendra Yadav GitHub: https://github.com/shailendrayadav7/ReduxToolkitQuery Group 2
Full Stack Development Bootcamp - Redux Toolkit Query Task with Product Page
Task Description
In this task, you will utilise Redux Toolkit Query to fetch product data from the Fake Store API and create a product page in your Vite + React application. You are encouraged to use any UI library of your choice (e.g., Material UI, Tailwind CSS, Daisy UI, Flowbite UI) to enhance the UI. Additionally, follow the directory-per-component pattern for organising your code, implement a loading indicator for RTK Query, add correct type references with TypeScript, and create a proper card implementation to display the products.
Prerequisites
Before you begin, ensure you have the following installed on your system:
Task Steps
Step 1: Set Up a Vite + React Project
Open your terminal and navigate to the directory where you want to create your project.
Run the following command to create a new Vite + React project using
create-vite@latest
:Navigate into your project directory:
Step 2: Follow the Directory-per-Component Pattern
ProductPage
,CardComponent
).Step 3: Install and Configure RTK Query
Install Redux Toolkit and RTK Query as dependencies:
Set up your Redux store and configure RTK Query according to the official documentation.
Step 4: Fetch Data using RTK Query and Implement Card Component
Step 5: Create a Product Page
ProductPage
in a suitable directory (e.g.,src/pages
).useQuery
hook from RTK Query to fetch and display the product data on theProductPage
component.Step 6: Implement Navigation and UI Library
ProductPage
component.Step 7: Loading Indicator and Type References
Step 8: Run the Development Server
Start the development server by running:
Open your browser and navigate to
http://localhost:3000
to see your Vite + React app with the product page, RTK Query, and enhanced UI in action.Task Completion
Congratulations! You've successfully completed the Redux Toolkit Query task with a product page. You've learned how to use RTK Query to fetch and display product data, implement navigation, style your components using a UI library, organise your code using the directory-per-component pattern, implement a loading indicator, and use proper type references with TypeScript.
Submission
Please follow the submission process below:
Your submission will be reviewed, and feedback will be provided through the same issue.
Further Learning
To further enhance your skills with RTK Query, explore more advanced features such as caching, mutations, and pagination. Refer to the official documentation for comprehensive guidance.
Conclusion
Great job on completing this comprehensive Redux Toolkit Query task with Vite + React and creating a product page! You've gained valuable experience in using RTK Query to manage data fetching, designing a user-friendly UI using your chosen UI library, organising your code using the directory-per-component pattern, implementing a loading indicator, and using proper type references with TypeScript. Keep exploring and building with Redux Toolkit and RTK Query!