This is the backend server for AssuredLife - a modern life insurance management platform. It is a role-based full-stack web application built with the MERN stack. It provides a secure and robust REST API to support the client-side application.
The Front-End application is deployed and accessible at the following URL:
- Live Site: https://assured-life-upgraded.web.app/
The Back-End server API is available at the following URL:
- Backend API: https://assured-life-server-upgraded.vercel.app/
- Secure Authentication: JWT-based authentication using Firebase for user sign-up, login, and session management.
- Role-Based Access Control: Middleware to protect routes based on user roles (Admin, Agent, Customer).
- User Management: Endpoints for admins to view all users and manage their roles (promote/demote).
- Policy Management: Full CRUD (Create, Read, Update, Delete) functionality for insurance policies, managed by admins.
- Application Workflow: Customers can apply for policies; admins can view, assign agents to, and approve/reject applications.
- Agent Management: Admins can review applications from users wanting to become agents and manage their status.
- Dynamic Content: API support for dynamic homepage sections, including popular policies, customer reviews, and featured agents.
- Blog & FAQs: Agents can manage blog posts, and admins can manage the FAQ section.
- Claim Processing: Authenticated users can submit insurance claims, which are then managed by admins.
- Stripe Payment Integration: Secure endpoints for processing premium payments via Stripe.
- Transaction Tracking: Admins can view a history of all successful payments made through the platform.
- Profile Management: Users can view and update their profile information (name, photo).
- Newsletter Subscription: Endpoint to collect and store newsletter sign-ups.
