Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/woldreamz/product-list

This project is a responsive and dynamic product listing application built with Next.js. It features fetching product data from an API, sorting, searching, and displaying the products in an interactive and visually appealing way. The application showcases creativity and attention to detail through its design and functionality.
https://github.com/woldreamz/product-list

axios framer-motion nextjs tailwindcss

Last synced: about 2 months ago
JSON representation

This project is a responsive and dynamic product listing application built with Next.js. It features fetching product data from an API, sorting, searching, and displaying the products in an interactive and visually appealing way. The application showcases creativity and attention to detail through its design and functionality.

Awesome Lists containing this project

README

        

# Product Listing Application

## Project Description
This project is a responsive and dynamic product listing application built with Next.js. It features fetching product data from an API, sorting, searching, and displaying the products in an interactive and visually appealing way. The application showcases creativity and attention to detail through its design and functionality.

## Installation Instructions
Prerequisites
Node.js
npm

### Steps
Clone the repository

git clone [https://github.com/Woldreamz/Product-list.git]

cd my-product-list

### Install dependencies

npm install

### Run the development server

npm run dev

Open http://localhost:3000 to view it in your browser.

### Build for production

npm run build

Start the production server

npm start

## Features
Responsive Design: The application is fully responsive and works seamlessly on different devices.
Product Listing: Displays a list of products fetched from an API.
Sorting: Allows sorting products by price (ascending and descending).
Search: Enables searching for products by name.
Animations: Smooth animations using Framer Motion.
Error Handling: Gracefully handles loading and error states.

## Deployment
The application is deployed on Vercel. You can access it at the following link:

Product Listing Application on Vercel

## Screenshots
Home Page

Sorting and Search

# Getting Started

## Project Structure

/components

└── Header.js

└── ProductCard.js

└── ProductList.js

└── SortFilter.js

/services

└── productService.js

/styles

└── Home.module.css

└── globals.css

└── ProductCard.module.css

└── ProductList.module.css

/pages

└── index.js

## Code Examples

Fetching Products
services/productService.js:
javascript
Copy code
import axios from 'axios';

const API_URL = ['https://dummyjson.com/products'];

export const fetchProducts = async () => {
const response = await axios.get(API_URL);
return response.data.products;
};

Contributing
Feel free to fork this project and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

## License
# MIT