Skip to content

ivanlomoro/react-ecommerce-typescript

Repository files navigation

tittle pag

React Ecommerce - FunkoLand !

This project is a Funko ecommerce site developed in React with TypeScript, using Vite and JSON-Server to simulate a local product API.

Table of Contents

Introduction

This project offers Funko enthusiasts the opportunity to explore and purchase their favorite character figures on an ecommerce platform built with React. The project utilizes TypeScript and leverages Vite for fast code compilation, and JSON-Server to simulate a locally stored product API.

Features

  • Browsing and purchasing Funkos.
  • Searching and filtering Funkos.
  • Shopping cart management.

Requirements

To run the project, you need to have the following requirements installed:

  • Node.js
  • pnpm (or npm)
  • Vite
  • JSON-Server

Installation

Follow these steps to install the project:

  1. Clone the repository:
git clone https://github.com/ivanlomoro/react-ecommerce-typescript.git
  1. Navigate to the project directory:
cd react-ecommerce-typescript
  1. Install the dependencies:
pnpm install

Usage

To run the project, follow these steps and commands:

  1. Create a .env file in the root of your project with the following content:
VITE_API_BASE_URL=http://localhost:3001/products

Additionally, you can find an example of the .env file in the config folder named env.example. This file serves as a template for your configuration.

  1. Run JSON server:
pnpm run json-server
  1. Run the development server:
pnpm run dev

Access the project through your browser at http://localhost:5173.

Technologies and Concepts

HTML, CSS TypeScript React Vite JSON-Server Prop-drilling useState, useEffect Conditionals and error handling React Router useContext Inputs and forms Async/Await React Router with dynamic and private routes useParams, custom hooks useReducer

Conclusion

In working on this project, I've gained valuable experience in building a complex React application with TypeScript, incorporating essential concepts like routing, state management, and error handling. The project also provided the opportunity to work with Vite and JSON-Server, which are powerful tools for rapid development and simulating APIs. This experience has deepened my knowledge of modern web development, and I look forward to applying what I've learned in future projects.

Preview

Desktop Version Mobile Version

About

FunkoLand ! React Ecommerce developed using Typescript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages