This project is an Ecommerce site built using React/Nextjs, Redux Toolkit, Tailwindcss, ReactIcons and ReactQuery as a Frontend Assignment . It provides a frontend implementation of an Ecommerce website with API integration from fakeApi.com
- Introduction
- Tech Stacks
- Features
- Requirements
- Getting Started
- Project Structure
- Available Scripts
- Contributing
- License
- React
- Nextjs 13
- Redux Toolkit - State Management
- tailwindcss
- React Icons - icon library
- ReactQuery - data fetching hook / Error handling
- Axios - Data fetching
This project aims to demonstrate the frontend implementation of an Ecommerce site called OurStore using modern web development technologies. It leverages React as the primary JavaScript library for building user interfaces, Nextjs as the development server and bundler, Redux Toolkit for state management, tailwindcss for the UI components and React Icons for iconography.
This WebApp uses the fakeApi from https://fakestoreapi.com/
- Browse and search products
- View Product detail
- Add products to the cart
- View and update cart contents
- Display alerts for various actions
Make sure you have the following software installed on your machine:
- Node.js (version 12 or higher)
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/CodeMode365/frontend-assignment.git
- Navigate to the project directory:
cd frontend-assignment
- Install the dependencies using npm or yarn:
npm install # or yarn install
- Start the Development server
npm run dev # or yarn dev
The application will be available at http://localhost:3000.
The project structure follows a modular approach to enhance maintainability and scalability.
In the project directory, you can run the following scripts:
npm run dev
oryarn dev
: Starts the development server.npm run build
or yarn build`: Builds the app for production.npm run preview
oryarn preview
: Run the project in preview mode
Refer to the package.json file for additional scripts.
This project is licensed under the MIT License. Feel free to use and modify the code as per your needs.
Thank you for your interest in this project! If you have any questions orneed further assistance, please feel free to reach out. Happy coding!