Skip to content

Vladokvl/react_phoneCatalog

Repository files navigation

React Phone Catalog

A compact demo phone catalog built with React, TypeScript, and Vite. It showcases product listings, product detail pages, a shopping cart and favourites using React Context, responsive layouts, and SCSS-based styling.

Features

  • Product listings (phones, tablets, accessories)
  • Product detail pages with images and specifications
  • Cart and favourites (React Context)
  • Product carousel for showcasing items
  • Responsive SCSS-based styling

Tech stack

  • React 18
  • TypeScript
  • Vite
  • Sass (SCSS)
  • Bulma

Quick start

  1. Install dependencies:
npm install
  1. Start the development server:
npm start
  1. Create a production build:
npm run build

Available scripts

  • npm start — run the dev server
  • npm run build — build for production
  • npm run format — format code with Prettier
  • npm run lint — run linters and style checks
  • npm run style-format — format SCSS files

Project structure

  • public/ — static assets and mock API datasets
  • src/ — application source code
    • api/ — API client and local data
    • components/ — UI components (e.g. ProductCard, ProductCarousel)
    • context/CartContext and FavouritesContext
    • pages/ — route pages (Home, Cart, ProductDetails, etc.)
    • styles/ — SCSS variables and utilities
    • types/ — TypeScript types
    • utils/ — helper utilities

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors