/LuxeThreads

LuxeThreads: Premium clothing store

Primary LanguageJavaScript

Welcome to LuxeThreads, an elegant and efficient e-commerce store built using the MERN stack with various technologies for enhanced performance and security.

project front page

email: test@gmail.com password: test

Features

  • Efficient e-commerce store with Cloudinary-optimized images for a 50% faster content load time.
  • Secure transactions powered by Stripe and streamlined cart management using Redux Toolkit.
  • MERN stack implementation with JWT authentication and a RESTful API for user and product management.

Tech Stack

Client: React, CSS, Redux Toolkit, Stripe

Server: Node, Express, MongoDB, JSON Web Tokens, Cloudinary

Installation

Clone repository

https://github.com/aayushgirdhar/LuxeThreads.git

Install dependencies for the backend and frontend:

cd luxethreads
cd client && npm install
cd ../server && npm install

To run this project, you will need to add the following environment variables to your .env file

Client

VITE_API_URL

Server

MONGO_URI

PORT

SECRET

STRIPE_SECRET_KEY

API Reference

User

Log in

POST /api/user/login

Sign up

POST /api/user/signup

Get wishlist

GET /api/user/wishlist/

Add to wishlist

POST /api/user/wishlist/:itemID

Remove an item from the wishlist

DELETE /api/user/wishlist/:itemID

Products

Get all products

GET /api/products/

Get single product

GET /api/products/:id

Add product

POST /api/products/create