Triveous Ecommerce Backend is the server-side component of our robust e-commerce platform, powering everything from user authentication to order processing. Built with Node.js, Express.js, and MongoDB, it provides the essential backend functionality for a complete online shopping experience.
Our Triveous Ecommerce Backend offers a comprehensive set of features to drive your e-commerce platform:
-
User Management:
- User registration with email verification.
- Secure user authentication using JSON Web Tokens (JWT).
-
Category and Product Management:
- Create, update, and delete product categories.
- Manage product details including title, price, description, and availability.
-
Shopping Cart:
- Add products to the cart.
- View, update quantities, and remove items from the cart.
-
Order Processing:
- Place orders with automatic calculation of order totals.
- Order history and order details retrieval.
- Send email confirmations for order placements and updates.
-
Error Handling:
- Robust error handling and validation for data integrity.
-
RESTful APIs:
- Well-documented RESTful APIs for seamless integration with frontend applications.
Our backend leverages the following technologies to provide a secure and scalable e-commerce solution:
-
Node.js: A server-side JavaScript runtime for building fast and scalable network applications.
-
Express.js: A minimal and flexible Node.js web application framework that simplifies the development of robust APIs.
-
MongoDB: A NoSQL database for efficient data storage and retrieval.
-
Mongoose: An elegant object modeling library for MongoDB, making it easy to manage database interactions.
-
JSON Web Tokens (JWT): Secure user authentication and authorization.
-
Nodemailer: A powerful library for sending email notifications.
Before you start, ensure you have met the following requirements:
- Node.js: Install Node.js (LTS version) from nodejs.org.
-
Clone the repository:
git clone https://github.com/Amanmandal-M/Triveous-Ecommerce-Backend.git
-
Install Dependencies:
cd triveous-ecommerce-backend npm install / npm i
-
Database Setup: Configure the MongoDB connection by providing your database URI in the
.env
file:MONGO_URI = your_mongodb_uri
-
Email Configuration: Set up your email service credentials in .env for sending email notifications. For example, with Gmail:
EMAIL_ID = your_email_id GOOGLEKEY = your_google_key
Start the backend server:
```shell
npm start
# or
node server.js
# or
nodemon server.js
# or
npm run start
# or
npm run server
Our API is thoroughly documented to help you integrate the backend with your frontend. For detailed information, please refer to the API documentation.
Swagger API Docs : click here
To understand the data structure of our MongoDB database, explore the Database Schema.
We maintain a clean and organized folder structure for easy navigation and development. Get familiar with it in the Folder Structure document.
Made with ❤️ by the Triveous Ecommerce Team