Skip to content

horiaomar25/NovaStore

Repository files navigation

NovaStore

This is a ecommerce website that uses data from DummyJSON API. This was built using React with TypeScript and TailwindCSS for styling and responsiveness.

Table of Contents

Introduction

This is a ecommerce store that displays products using the data from DummyJSON API which is great resource to showcase frontend development. I enjoy building the project as it really helped me to understand the importance of using Typescript and really understand the data that I am using in my project.

Technologies

  • Frontend: React, TypScript, TailwindCSS, Component Library: DaisyUI
  • Backend: DummyJSON API, Custom Hooks, Type Definitions
  • APIs: Dummy JSON API
  • Version Control: Git, GitHub

Features

  • Product List: View a comprehensive list of products.
  • Product Details: Access detailed information about each product, including biography, achievements, and historical significance.
  • User Interface: Designed for ease of navigation with a user-friendly interface.
  • Integration: Connected with Historical Figures API and Wiki API for accurate and up-to-date information.

What I learnt

  • Type Definition: Created TypeScript definitions (e.g., Products.d.ts) to ensure type safety and reduce errors when fetching and using data from APIs.

  • Custom Hooks: Developed custom hooks (e.g., useProduct) to handle data fetching and state management efficiently.

  • Responsiveness: Applied TailwindCSS for creating a responsive and visually appealing design.

Installation

To set up the project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/historical-figures.git
    cd historical-figures
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

Usage

  1. Open your browser and navigate to http://localhost:3000.
  2. Click on Explore or Shop to see all products
  3. Use the Category select to toggle between different types of products depending on
  4. You can add products to the cart and delete from the cart.

License

This project is licensed under the MIT License. See the LICENSE file for details.