ABC General Store (Shoporia concept)
This project was built as a concept for "ABC General Store". All branding, UI, and features are tailored to match the client brief. Shoporia is the original codebase, adapted for ABC General Store branding.
ABC General Store is a full-stack e-commerce web application built with React (frontend) and Express/MongoDB (backend). It features user authentication, product management, cart, orders, payments, and an admin dashboard.
- Features
- Tech Stack
- Project Structure
- Setup Instructions
- Environment Variables
- Scripts
- Folder Overview
- License
- User registration, login, profile management
- Product listing, details, reviews, and ratings
- Cart and checkout flow
- Order management and payment integration
- Admin dashboard for managing products, users, orders, and reviews
- Responsive UI with modern design
Frontend:
- React
- Vite
- Redux Toolkit
- Axios
- CSS Modules
Backend:
- Node.js
- Express
- MongoDB (Mongoose)
- JWT Authentication
- Cloudinary (for image uploads)
- Nodemailer (for emails)
- Stripe/other payment integration
Shoporia/
backend/
app.js
server.js
.env
config/
controller/
middleware/
models/
routes/
utils/
frontend/
src/
public/
index.html
package.json
README.md
vite.config.js
package.json
.gitignore
- Node.js (v18+ recommended)
- MongoDB instance (local or cloud)
- Cloudinary account (for image uploads)
- Stripe or other payment provider keys
git clone https://github.com/Shanidhya01/Shoporia.git
cd Shoporianpm installcd ../frontend
npm installCreate a .env file in backend/ with the following (example):
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
STRIPE_SECRET_KEY=your_stripe_key
EMAIL_USER=your_email
EMAIL_PASS=your_email_password
npm run devcd ../frontend
npm run devThe frontend will be available at http://localhost:5173 (default Vite port).
npm start— Start the Express servernpm run dev— Start with nodemon for development
npm run dev— Start Vite development servernpm run build— Build for production
app.js— Express app setupserver.js— Server entry pointconfig/— Database and other config filescontroller/— Route controllers (user, product, order, payment)middleware/— Auth and other middlewaremodels/— Mongoose modelsroutes/— Express route definitionsutils/— Utility functions (API features, JWT, email, etc.)
src/— Main React source codeAdmin/— Admin dashboard componentsCart/— Cart and checkout componentsOrder/— Order management componentsPages/— Main pages (Home, Products, ProductDetails)User/— User authentication and profile componentscomponents/— Shared UI componentsfeatures/— Redux slices for state management
public/— Static assets
This project is licensed under the MIT License.
Feel free to customize this README further for deployment, contributing, or API documentation!