Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohamedumar083/rapid_quest_backend
This is the backend for the Sales Analytics Dashboard built using Node.js, Express, and MongoDB. The backend provides various API endpoints to fetch data related to total sales, sales growth rate, customer acquisition, repeat customers, geographical distribution, and customer lifetime value.
https://github.com/mohamedumar083/rapid_quest_backend
environment-variables express javascript mongodb mongoose nodejs
Last synced: 18 days ago
JSON representation
This is the backend for the Sales Analytics Dashboard built using Node.js, Express, and MongoDB. The backend provides various API endpoints to fetch data related to total sales, sales growth rate, customer acquisition, repeat customers, geographical distribution, and customer lifetime value.
- Host: GitHub
- URL: https://github.com/mohamedumar083/rapid_quest_backend
- Owner: MohamedUmar083
- Created: 2024-09-12T13:51:07.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T19:11:12.000Z (2 months ago)
- Last Synced: 2024-10-10T14:24:55.115Z (about 1 month ago)
- Topics: environment-variables, express, javascript, mongodb, mongoose, nodejs
- Language: JavaScript
- Homepage: https://rapid-quest-backend.onrender.com
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Sales Analytics Dashboard - Backend
## Overview
This is the backend for the Sales Analytics Dashboard built using Node.js, Express, and MongoDB. The backend provides various API endpoints to fetch data related to total sales, sales growth rate, customer acquisition, repeat customers, geographical distribution, and customer lifetime value.
## Technologies Used
- **Node.js**: JavaScript runtime
- **Express.js**: Web framework for Node.js
- **MongoDB**: NoSQL database
- **Mongoose**: ODM for MongoDB## Routes
### 1. Total Sales Over Time
- **Route**: `api/order/totalsales/interval`
- **Description**: Fetches total sales aggregated by the interval (daily, monthly, quarterly, or yearly) from the `shopifyOrders` collection.### 2. Sales Growth Rate Over Time
- **Route**: `api/order/growthrate/interval`
- **Description**: Calculates the sales growth rate over a specific time interval from the `shopifyOrders` collection.### 3. New Customers Added Over Time
- **Route**: `api/customer/newcustomers/interval`
- **Description**: Retrieves the count of new customers added over time from the `shopifyCustomers` collection.### 4. Repeat Customers
- **Route**: `api/customer/dublicate/interval`
- **Description**: Identifies customers who have made more than one purchase across different intervals using the `shopifyOrders` collection.### 5. Geographical Distribution of Customers
- **Route**: `api/customers/getCity`
- **Description**: Visualizes the geographical distribution of customers based on the `city` field from the `shopifyCustomers` collection.### 6. Customer Lifetime Value by Cohorts
- **Route**: `api/order/totalsales/getclv`
- **Description**: Groups customers by their first purchase date and calculates the customer lifetime value based on their purchase history.## Project Documentation
- [Frontend Repository](https://github.com/MohamedUmar083/Rapid_Quest_Frontend) - The Frontend repository for the project.
- [Api Documentation](https://documenter.getpostman.com/view/25526528/2sAXqne4hY) - Detailed documentation of the API endpoints.
- [Frontend Deployment](https://rq-ecomm.netlify.app/) - Live version of the frontend application.
- [Backend Deployment](https://rapid-quest-backend.onrender.com/ping) - Live version of the backend application.