Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

DotDash – MERN Advisor-Client Management System

A full-stack MERN application for Advisors to manage their clients.
Features include authentication, client CRUD, search/filter/sort, and an insights dashboard.


📂 Project Structure

root/
├── backend/ # Express + MongoDB
├── frontend/ # React + Vite
├── README.md # Instrution for settting up project 

⚡ Setup Instructions

1. Clone the repository

git clone https://github.com/your-username/dotdash.git
cd dotdash

2. Backend Setup

cd backend
npm install

Create a .env file inside backend/ with the following:

MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
PORT=5000

Run the backend:

npm run dev

Backend should start on http://localhost:5000.


3. Frontend Setup

cd ../frontend
npm install

Start the frontend:

npm run dev

Frontend should start on http://localhost:5173.


4. Test the APIs

Advisor Routes

  • Register a new AdvisorPOST http://localhost:5000/api/auth/register
  • LoginPOST http://localhost:5000/api/auth/login

Client Routes (Protected, need JWT token in headers: Authorization: Bearer <token>)

  • Add ClientPOST http://localhost:5000/api/clients
  • Get All ClientsGET http://localhost:5000/api/clients
  • Update ClientPUT http://localhost:5000/api/clients/:id
  • Delete ClientDELETE http://localhost:5000/api/clients/:id
  • Search & Filter ClientsPOST http://localhost:5000/api/clients/search
    • Search by Client's Name
    • Filters by category(UHNI/HNI).
    • Can also sort by net worth
  • Get InsightsGET http://localhost:5000/api/clients/insights
    • Returns metrics like total clients, category distribution, aggregate net worth

5. Features

  • Advisor registration & login with JWT
  • Manage clients (Add, Edit, Delete, Update)
  • Search & filter clients (by name or/and category)
  • Sort clients by net worth
  • Insights dashboard (total clients, category distribution, aggregate net worth)
  • Protected routes & auth middleware
  • Frontend with React (Vite), Axios, Context API

6. Tech Stack

  • Frontend: React (Vite), Axios, Context API
  • Backend: Node.js, Express.js, JWT, Mongoose
  • Database: MongoDB Atlas

About

A full-stack MERN application for Advisors to manage their clients. Features include authentication, client CRUD, search/filter/sort, and an insights dashboard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages