Skip to content

M-Tri/react-ecommerce-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# Ecommerce Project

This project has a **React frontend (converted to TypeScript)** (`ecommerce-project`) and a **Node.js backend** (`ecommerce-backend`). Follow these steps to run it locally.

---

## Prerequisites

- Node.js and npm installed
- Both frontend and backend folders available

---

## Run the Backend

1. Go to the backend folder:
   ```bash
   cd ecommerce-backend
  1. Install dependencies:

    npm install
  2. Start the backend server:

    node server.js
  3. Backend usually runs on http://localhost:5000.


Run the Frontend

  1. Go to the frontend folder:

    cd ../ecommerce-project
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Open the URL printed in the terminal (usually http://localhost:5173).


Notes

  • The frontend is written in TypeScript, but type checking may not be fully implemented.
  • Make sure the backend is running first, otherwise the frontend cannot fetch product data.
  • Some features (like search) may not be fully functional yet.

Acknowledgments

This project was developed based on the tutorials provided by SuperSimpleDiv.Their tutorials on building a React ecommerce project were instrumental in creating this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors