This project is an Admin Dashboard built using Next.js, Tailwind CSS, Node.js, Express, and MongoDB. It incorporates a sample data API to populate the MongoDB database and utilizes a MongoDB aggregation pipeline to generate analytics for sales, products, and user metrics.
- Endpoint:
GET /api/v1/orders/analytics
- Provides total sales, discounted sales, net sales, and the total number of orders.
- Additional data includes average order value and conversion rate.
- Endpoint:
GET /api/v1/products/analytics
- Offers information on top-selling products and product-wise sales distribution.
- Additional data includes total available stock for each product.
- Endpoint:
GET /api/v1/users/analytics
- Presents the number of registered users, gender distribution, and age distribution.
- Additional data includes average user age and the percentage of users with accounts linked to social media.
- Node.js and npm installed
- MongoDB installed and running
- Tailwind CSS configured for styling