https://github.com/budaala/pawww-store
MERN-based online store for pet accessories ๐ถ Includes image upload, stock tracking & API.
https://github.com/budaala/pawww-store
e-commerce express mern-stack mongodb mui nodejs pets react stripe
Last synced: 3 months ago
JSON representation
MERN-based online store for pet accessories ๐ถ Includes image upload, stock tracking & API.
- Host: GitHub
- URL: https://github.com/budaala/pawww-store
- Owner: budaala
- Created: 2025-06-02T12:12:42.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-25T10:53:03.000Z (4 months ago)
- Last Synced: 2025-06-25T11:49:10.835Z (4 months ago)
- Topics: e-commerce, express, mern-stack, mongodb, mui, nodejs, pets, react, stripe
- Language: TypeScript
- Homepage:
- Size: 15.3 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐พ Pawww Store โ Pet Supplies Web App
Pawww Store is a full-stack web application for selling pet accessories, built with the **MERN stack** (MongoDB, Express, React, Node.js). It allows users to browse products, place orders, and manages inventory stock automatically.
## โจ Features
- ๐ Product listing with name, price, image, and stock
- โ Order submission with stock auto-update
- ๐งพ RESTful API powered by Express & MongoDB
- ๐ฆ Simple JSON-based order input (no frontend required initially)## ๐ง Tech Stack
- **Frontend**: React (coming soon)
- **Backend**: Node.js, Express.js
- **Database**: MongoDB + Mongoose
- **Environment Management**: dotenv## ๐ Getting Started
### 1. Clone the repository
```bash
git clone https://github.com/budaala/pawww-store.git
cd pawww-store
```### 2. Install dependencies
```bash
npm install
```### 3. Configure environment variables
Create a .env file:
```bash
PORT=5000
MONGO_URL=mongodb://localhost:27017/pawww-store
```### 4. Run the backend server
```bash
npm run dev
```The backend runs at: http://localhost:5000
## ๐ฌ API Endpoints
### ๐๏ธ GET /api/products
Returns a list of all products.
### ๐งพ POST /api/orders
Submits an order and updates product stock. Example payload:
```json
{
"items": [
{
"productId": "666a1b6f7a1b2c3d4e5f6789",
"name": "PawPodusia",
"price": 59.90,
"quantity": 2
}
],
"totalPrice": 119.80
}
```## ๐ Project Structure
```bash
pawww-store/
โโโ model/
โ โโโ productModel.js
โ โโโ orderModel.js
โโโ routes/
โ โโโ productRoute.js
โ โโโ orderRoute.js
โโโ controllers/
โ โโโ productController.js
โ โโโ orderController.js
โโโ uploads/
โ โโโ (product images)
โโโ index.js
โโโ .env
```## ๐ก Future Ideas
โข ๐งฉ Full React frontend with Tailwind
โข ๐ LocalStorage-based shopping cart
โข ๐ User authentication (JWT)
โข โ๏ธ Email notifications on order confirmation
โข ๐ Admin dashboard for product/order management## ๐ถ Author
Made with โค๏ธ for pets and coding.