Welcome to the Trendz Ecommerce Backend, the core of a powerful and scalable online shopping platform.
This backend handles user authentication, product management, orders, payments, and real-time updates, ensuring a seamless shopping experience.
π API Base URL
π’ Important!
This repository contains only the backend code.
For the frontend, visit: Trendz Ecommerce Frontend.
β
User Authentication β Secure login & signup with JWT
β
Product Management β Add, update, and delete products
β
Shopping Cart & Orders β Handle orders, payments, and shipping
β
Admin Dashboard β Manage users, products, and orders
β
Secure Payment Integration β Connect with Stripe or PayPal
β
RESTful API β Well-structured endpoints for smooth frontend communication
β
Scalable & Secure β Built with performance and security in mind
- Backend Framework: Node.js + Express.js
- Database: MongoDB + Mongoose
- Authentication: JWT (JSON Web Token)
- Real-Time Updates: WebSockets (Socket.io)
- Payment Gateway: Stripe / PayPal
- API Documentation: Swagger / Postman
- Deployment: Render / AWS
- Clone the repository
git clone https://github.com/itxnargis/trendz-ecommerce-backend.git cd trendz-ecommerce-backend
- Install Dependencies
npm install
- Configure environment
PORT=5000 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key STRIPE_SECRET_KEY=your_stripe_key FRONTEND_URL=https://trendz-ecommerce-tau.vercel.app
- Start the server
npm start
- Your API will be live at http://localhost:5000.
1οΈβ£ User Registration & Login β Create an account and authenticate
2οΈβ£ Product Management β Fetch, add, update, or delete products
3οΈβ£ Cart & Orders β Manage shopping cart and place orders
4οΈβ£ Admin Controls β Manage users, orders, and inventory
Contributions are welcome! Please follow these steps:
- Fork the project.
- Create your feature branch:
git checkout -b feature/AmazingFeature
- Commit your changes:
git commit -m 'Add some AmazingFeature'
- Push to the branch:
git push origin feature/AmazingFeature
- Open a Pull Request.
Distributed under the MIT License. See LICENSE for details.