Skip to content

Clean Bubble is a complete one-product e-commerce website with all essential features, including order-slip printing and advanced store analytics.

License

Notifications You must be signed in to change notification settings

Subhajeetch/clean-bubble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Clean-Bubble


Discord server live site Last commit. MongoDB Brevo shadcn/ui Zustand

Clean Bubble is a complete one-product e-commerce website with all essential features, including order-slip printing and advanced store analytics.


Full Project Overview: https://youtu.be/8kkdYQgnLtY
Screenshot 1

📸 Screenshots


![Screenshot 2](https://i.postimg.cc/Nj6V7Xp1/Screenshot-2025-11-23-200047.png) ![Screenshot 3](https://i.postimg.cc/BtWY2ZFh/Screenshot-2025-11-23-200228.png) ![Screenshot 4](https://i.postimg.cc/25cfhv5D/pic-1-profile.jpg) ![Screenshot 5](https://i.postimg.cc/L6tKvGsh/pic-1-profile-(2).jpg) ![Screenshot 6](https://i.postimg.cc/mDzK95q9/Screenshot-2025-11-23-200332.png) ![Screenshot 7](https://i.postimg.cc/wB3rKr90/Screenshot-2025-11-23-200341.png) Screenshot 2025-11-23 200407 ![Screenshot 9](https://i.postimg.cc/Y0XgwdrD/pic-1-profile-(1).jpg) Screenshot 2025-11-23 202348

📄 Project overview

Clean Bubble is a demo web app showing a production-like split between a Next.js (React) frontend and an Express/MongoDB backend. The frontend uses modern patterns (App Router, server and client components, shadcn/ui-like components, Tailwind CSS). The backend exposes REST endpoints and uses cookies / JWTs for auth.

⚙️ Tech stack

  • Frontend: Next.js (app dir), React 19, Tailwind CSS, sonner (toasts), axios, zustand, shadcn/ui, lucide-react
  • Backend: Node + Express, Mongoose (MongoDB), dotenv, cookie-parser, JWT
  • Dev tools: nodemon (backend), Next dev (frontend)

🖥️ Local development

Open two terminals: one for backend, one for frontend.

Backend (from project root):

cd backend
npm install
# Create a .env file (see example below)
npm run dev

Notes:

  • The backend dev script runs nodemon api/index.js. If you prefer a one-off run use npm start or node api/index.js.

Frontend (from project root):

cd frontend
npm install

# Create a .env.local file (see example below)
# Update fronted/mine.config.js with your backend url

npm run dev

Open your browser at http://localhost:3000 (Next.js dev server).

💭 Build & production

Frontend (build):

cd frontend
npm run build
# For production start (this repo's package.json defines a `start` script)
npm run start

Note: The frontend/package.json start script sets NODE_ENV in its command. On Windows you may need to adapt or use cross-env if you change that script.


📟 Environment variables

For Backend: Create a .env file in the backend/ folder with at least:

MOMGO_URI=your_mongo_uri_here
ACCESS_TOKEN_SECRET=your_access_token_secret_here
REFRESH_TOKEN_SECRET=your_refresh_token_secret_here
EMAIL_API_KEY=brevo_api_key
EMAIL_API_URL=https://api.brevo.com/v3/smtp/email
EMAIL_SENDER_EMAIL=email_that_you_used_in_brevo_must_be_verified

check backend/env.example for full information

If your frontend communicates with a backend running locally, ensure CORS / allowed origins include http://localhost:3000 (see backend/api/index.js).


For Backend: Create a .env.local file in the frontend/ folder with:

LOCATION_IQ_API_KEY=your_locationiq_api_key_here

# same as backend
MONGODB_URI=your_mongodb_uri_here
ACCESS_TOKEN_SECRET=your_access_token_secret_here
REFRESH_TOKEN_SECRET=your_refresh_token_secret_here

check frontend/env.local.example for full information

🫂 Contributing

Feel free to contribute.

📃 License & contact

Project is licensed under the MIT License. Feel free to use, edit, and build upon the code however you wish.


About

Clean Bubble is a complete one-product e-commerce website with all essential features, including order-slip printing and advanced store analytics.

Topics

Resources

License

Stars

Watchers

Forks