A full-stack e-commerce application built with React and TypeScript, featuring user authentication, shopping cart functionality, payment integration, and an admin dashboard for business management.
Frontend:
- React 19 with TypeScript
- React Router for navigation
- Tailwind CSS 4 for styling
- shadcn/ui components
- Axios for API requests
- React Hook Form with Zod validation
- Razorpay payment integration
- Docker for containerization
Build Tools:
- Vite
- pnpm package manager
- Nginx for production serving
- User authentication (login/register)
- Browse products by category
- Shopping cart management (add/remove/update quantities)
- Secure checkout with Razorpay payment gateway
- Order history tracking
- Dark/light theme toggle
- User management (view, edit user details and roles)
- Product management (add, edit, delete products)
- Business analytics dashboard with reports:
- Overall business summary
- Yearly revenue reports
- Monthly performance analysis
- Daily sales reports
- Category-wise sales breakdown
- Node.js (v24 or higher recommended)
- pnpm installed globally
- Backend API running (not included in this repository)
- Clone the repository
git clone https://github.com/darshan03s/salessavvy.git
cd salessavvy- Install dependencies
pnpm install- Create environment file
cp .env.example .env- Configure environment variables in
.env:
VITE_APP_NAME=
VITE_API_URL=
VITE_RZP_KEY_ID=
COMPOSE_PROJECT_NAME=salessavvy-frontendRun the development server:
pnpm devThe application will be available at http://localhost:5173
Build for production:
pnpm buildPreview production build:
pnpm previewBuild and run with Docker Compose:
docker compose up --buildThe application will be available at http://localhost:5173
Refer backend repository here: https://github.com/darshan03s/salessavvy-backend