A full-stack MERN application for Advisors to manage their clients.
Features include authentication, client CRUD, search/filter/sort, and an insights dashboard.
root/
├── backend/ # Express + MongoDB
├── frontend/ # React + Vite
├── README.md # Instrution for settting up project git clone https://github.com/your-username/dotdash.git
cd dotdashcd backend
npm installCreate a .env file inside backend/ with the following:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
PORT=5000Run the backend:
npm run devBackend should start on http://localhost:5000.
cd ../frontend
npm installStart the frontend:
npm run devFrontend should start on http://localhost:5173.
- Register a new Advisor →
POST http://localhost:5000/api/auth/register - Login →
POST http://localhost:5000/api/auth/login
- Add Client →
POST http://localhost:5000/api/clients - Get All Clients →
GET http://localhost:5000/api/clients - Update Client →
PUT http://localhost:5000/api/clients/:id - Delete Client →
DELETE http://localhost:5000/api/clients/:id - Search & Filter Clients →
POST http://localhost:5000/api/clients/search- Search by Client's Name
- Filters by category(UHNI/HNI).
- Can also sort by net worth
- Get Insights →
GET http://localhost:5000/api/clients/insights- Returns metrics like total clients, category distribution, aggregate net worth
- 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
- Frontend: React (Vite), Axios, Context API
- Backend: Node.js, Express.js, JWT, Mongoose
- Database: MongoDB Atlas