Skip to content

πŸš€ ShopSphere – E-Commerce Platform A modern PERN stack e-commerce site with PostgreSQL, Express, React, and Node.js. Features bot detection, rate limiting, global state management & a sleek UI. Check it out now! πŸ”—

Notifications You must be signed in to change notification settings

Varunyadavgithub/ShopSphere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ShopSphere is a modern e-commerce platform built using the PERN stack (PostgreSQL, Express, React, Node.js) with TailwindCSS and Daisy UI for styling. It includes advanced features such as rate limiting, bot detection, global state management, and error handling to ensure a seamless shopping experience.

πŸ“Έ Screenshot

Screenshot 2025-02-12 124825

πŸš€ Features

  • Tech Stack: PERN + TailwindCSS + Daisy UI
  • Rate Limiting & Bot Detection (via Arcjet)
  • Global State Management with Zustand
  • Error Handling on both server and client
  • Deployment on Render (Backend serves the frontend)
  • Fully Responsive & Modern UI

πŸ› οΈ Tech Stack

Backend:

  • Node.js
  • Express.js
  • PostgreSQL (Neon Database)
  • Arcjet for bot protection and rate limiting
  • Helmet for security
  • Morgan for logging

Frontend:

  • React
  • React Router DOM
  • Zustand for state management
  • TailwindCSS & Daisy UI for styling
  • Axios for API calls
  • React Hot Toast for notifications

πŸ—οΈ Installation & Setup

1️⃣ Clone the repository

git clone /~https://github.com/Varunyadavgithub/ShopSphere.git
cd shopsphere

2️⃣ Set up the backend

cd server
npm install
cp .env.example .env  # Configure your environment variables
npm run dev  # Start the backend

3️⃣ Set up the frontend

cd ../client
npm install
npm run dev  # Start the frontend

πŸ›  Environment Variables Setup

Create a .env file inside the server/ directory and configure it as follows:

PORT=3000
PGUSER='your_postgres_user'
PGPASSWORD='your_postgres_password'
PGHOST='your_postgres_host'
PGDATABASE='your_postgres_database'
ARCJET_KEY='your_arcjet_key'

Make sure to replace the placeholders with your actual credentials.

πŸ“Œ Available Scripts

Backend:

npm run dev      # Start development server with nodemon
npm run start    # Start production server
npm run build    # Install dependencies and build frontend

Frontend:

npm run dev      # Start frontend in development mode
npm run build    # Build frontend for production

🌐 Deployment

The backend is deployed on Render, serving the frontend directly.

πŸ“¬ Contact & Contribution

We welcome contributions! If you have suggestions, feature requests, or bug reports, feel free to:

  • Open an issue on GitHub
  • Submit a pull request with your improvements
  • Connect with us for discussions and ideas

Your contributions help make ShopSphere better! πŸš€

πŸ“„ License

This project is licensed under the ISC License.

πŸ’™ Happy Coding! πŸš€

About

πŸš€ ShopSphere – E-Commerce Platform A modern PERN stack e-commerce site with PostgreSQL, Express, React, and Node.js. Features bot detection, rate limiting, global state management & a sleek UI. Check it out now! πŸ”—

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages