Skip to content

Ali-Haggag7/Admin-Pro-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ Admin Pro API (CRM Engine)

A comprehensive Backend REST API engineered for Customer Relationship Management (CRM) and Task Tracking. Built with Node.js & Express following a strict MVC Architecture.


📐 System Architecture

This system is designed as a scalable CRM Backend, decoupling business logic (Controllers) from data access (Models) and routing (Routes).

📂 Core Modules (Based on your codebase)

  • 👥 CRM Core: Management of Customers and sales Deals (Deal.js, Customer.js).
  • ✅ Workflow: Assigning and tracking team Tasks (Task.js).
  • 📊 Audit System: Logging system events and user Activities (Activity.js).
  • 🔐 Security: JWT Authentication (verifyToken.js) and protected routes.
  • ☁️ Media Handling: Image upload pipeline using Cloudinary (photoUpload.js, cloudinary.js).

🛠️ Tech Stack & Utilities

Component Technology Description
Runtime Node.js Non-blocking I/O environment
Framework Express.js RESTful routing and middleware
Database MongoDB NoSQL Schema-based modeling (Mongoose)
Auth JWT Stateless authentication & Role-based security
Storage Cloudinary Cloud-based image optimization & storage

🚀 API Capabilities

The system exposes a rich set of endpoints organized by domain:

1. Authentication & Users

  • POST /api/auth/register - Register new admin/staff
  • POST /api/auth/login - Secure login & token generation

2. CRM & Sales

  • GET /api/customers - Retrieve customer database
  • POST /api/deals - Create new sales opportunities

3. Workflow & Tasks

  • POST /api/tasks - Assign tasks to users
  • GET /api/activity - Monitor system logs

⚙️ Getting Started

1. Install Dependencies

npm install

2. Environment Variables (.env)

# Create a .env file in the root directory:
PORT=8000
MONGO_URI=your_database_connection_string
JWT_SECRET=your_secret_key
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret

3. Run the Server

# Development Mode
npm run dev

# Production Start
npm start

Backend Engineered by Ali Haggag

About

⚙️ A robust Node.js CRM Backend API featuring Customer Management, Deal Tracking, Task Scheduling, and JWT Authentication. Built with MVC Architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors