Skip to content

Harshyadav0987/Valiant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

128 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Valiant — Clothing store platform

A full-stack application built with a production mindset, focusing on scalability, performance, and real-world workflows such as authentication, payments, caching, and admin operations.

This project is not a toy CRUD app — it simulates how a real online store works end-to-end.

🚀 Why Valiant?

Most student projects stop at “add to cart.” Valiant goes further by implementing:

Secure authentication & authorization

Admin-level controls

Payment gateway integration

Performance optimization using Redis

Clean backend architecture suitable for scaling

🧩 Core Features 👤 User Side

User authentication using JWT

Product browsing with text-based search

Add to cart, wishlist, and order tracking

Secure checkout using Stripe & Razorpay

Order history and status updates

🛠 Admin Side

Admin authentication & protected routes

Manage products, users, and orders

Update order statuses

Centralized admin dashboard

⚙️ Tech Stack

Frontend

React

Tailwind CSS

Axios

Backend

Node.js

Express.js

MongoDB (Mongoose)

Redis (caching)

JWT Authentication

Payments

Stripe

Razorpay

Deployment / DevOps

Docker (in progress)

Environment-based configuration

🏗 Architecture Overview

Client (React) communicates with backend APIs

Backend (Node + Express) handles business logic

MongoDB stores persistent data (users, products, orders)

Redis caches frequently accessed data to reduce DB load

Payment gateways handle secure transactions

🧠 Performance Optimization

Redis caching implemented for frequently accessed endpoints

Reduced database calls for admin order listings

Optimized API responses using lean queries

🔐 Security Measures

JWT-based authentication

Role-based access control (User / Admin)

Secure password hashing

Environment variables for sensitive credentials

Input validation to prevent common attacks

🧪 Project Status

✅ Core features implemented

✅ Payments integrated

✅ Redis caching added

⏳ Dockerization (in progress)

⏳ Automated tests (planned)

🛠 Local Setup 1️⃣ Clone the Repository git clone https://github.com/Harshyadav0987/Valiant-E-Commerce.git cd Valiant-E-Commerce

2️⃣ Setup Environment Variables

Create .env files for backend and frontend using .env.example.

3️⃣ Install Dependencies

Backend

cd backend npm install

Frontend

cd frontend npm install

4️⃣ Run the Application

Backend

npm run server

Frontend

npm run dev

🌐 Live Demo

🔗 Live URL: https://valiant-0t1s.onrender.com/ 📸 Screenshots: Screenshot 2025-12-13 172734 Screenshot 2025-12-13 172755 Screenshot 2025-12-13 172807 Screenshot 2025-12-13 172824 Screenshot 2025-12-13 172839

Admin Panel

Screenshot 2025-12-13 172907 Screenshot 2025-12-13 173242 "https://github.com/user-attachments/assets/c19ddfe3-b56a-44ce-a1e3-e48b07d1b016" />

About

Production-ready MERN Project platform with text-based product search, Redis-cached APIs, secure JWT authentication, Stripe & Razorpay payments, admin dashboards, and security protections against XSS and NoSQL injection.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages