Skip to content

aayushsapkota9/frontend-assignment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

Assignment Title: E-commerce Development Taskk

  • homepage that can fetch data from api
  • search option and open product when selecting item
  • product page
  • redux setup
  • transtack query
  • cart add and remove using redux

Assignment Description:

In this assignment, you will create a basic e-commerce application using Next.js. You'll apply key Next concepts and fundamental web development skills. Your task is to develop a multi-page web application named "OnlineStore" that allows users to browse and search for products.

Instructions:

  1. Create a project repository on your profile and clone it to your machine to begin the project.
  2. Design and implement a web application named "OnlineStore" that allows users to browse and search for products.
  3. The application should have the following pages:
    • Home Page: Display a list of products with their images, names, and prices. Fetch the list from the provided API endpoint.
    • Search Page: Include a search bar where users can input the name of a product. On form submission, display a list of search results (products) fetched from the API endpoint.
    • Product Details Page: When a user clicks on a product from the search results or product list, they should be redirected to a page that displays detailed information about the product, including the product image, name, price, and description.

You can fetch data using the following API endpoint: https://fakestoreapi.com/

Requirements:

  • Use Next.js (v13 i.e. app folder) to create the web application. (Typescript MUST be used)
  • Create a visually appealing UI using any CSS framework (like Bootstrap, and Tailwind CSS).
  • Use react query (Tanstack query) for fetching and caching the API data.
  • Use of global state management with Redux toolkit, Recoil or any other state management library.
  • Write clean, maintainable, and well-documented code.
  • Use Git for version control, committing your code regularly to the forked Git repository in your profile.
  • Deploy the application to a hosting platform (e.g., Vercel, Netlify) and provide a live demo URL in your repo and the submission form.

Bonus Points:

  • Implement a responsive UI to improve user experience on mobile devices.
  • Handle loading and error states during data fetching.
  • Add a shopping cart functionality where users can add products to the cart and view the cart.

Submission Guidelines:

  1. Clone your fresh repo.
  2. Commit your code regularly and push the changes to your repository.
  3. Provide a DOCS.md file with all the technologies used and how to run the program locally.
  4. Once you have completed the assignment, deploy it in vercel or netlify.

Note: The assignment is intentionally challenging so do your best ;) . Don't hesitate to ask for any clarifications in the discussion section of this repo. Good luck with your assignment!

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.7%
  • CSS 1.9%
  • JavaScript 1.4%