Skip to content

iwaseemdevops/react-e-commerce

 
 

Repository files navigation

React-e-commerce

This is a customizable e-commerce frontend designed to make it easy for student developers to build on top of.
Built using Vite, The template features a clean and modern design, with a clear and consistent folder structure that makes it easy to navigate the project.
In addition to the frontend there's an even simpler backend-template to handle all your requests (READ MORE)

Getting Started

  • Clone this repo
  • run npm install
  • run npm run dev

Example Deployment

Simple React-E-Commerce Frontend

Advantages

  • Responsive design : Designed to be responsive on any device
  • Customizable : Easy to expand on and add your own features, no fancy libraries are used, everything is purely react and es6 functions
  • Clean project structure : Components are all seperated into their respective folders with their individual CSS files for easy styling
  • Vite: Get your server started in a matter of seconds using vite

What you get

  • A cart system: A store built using only useReducer, no redux or any other fancy state management system
  • Cached cart: Cart data is cached using localforage
  • Checkout: Adjust cart details and place orders here
  • Routing: Page routing has been set up to easily navigate between pages
  • Auth🔥: JWT authentication allowing the user to login and logout
  • Modals🔥: Easy and customzizable modals
  • Orders🔥: View orders, get details on when your order will be processed, cancel or report order

What it doesn't have

  • SEO: This is primarily for educational purposes, if you need SEO, you would have to commit to that.

To see a stripped down version with no JWT see NO JWT

Things to note

  • When running on localhost vite uses .env.development to connect to your backend (which must be running, more info here 👉 React E-Commerce-Backend With JWT) . Update it when needed
  • In production mode, .env.production will be used instead.

Contributions

Contributions are always welcome,

Licence

This template is released under the MIT License. Feel free to use it for personal or commercial projects.
You may credit me as well 😊

About

Frontend for react-e-commerce template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.4%
  • CSS 33.2%
  • HTML 0.4%