The ThriveSecure Server is a secure, scalable backend built with Node.js and Express, designed to power modern life and health insurance services. It delivers RESTful APIs for managing policies, payments, and user data while ensuring robust JWT-based authentication, Firebase Admin integration, and Stripe payment processing. Built for reliability and clarity, it seamlessly supports the ThriveSecure client platform.
This backend is responsible for:
- Managing insurance policies and user data
- Handling secure Stripe payment processing
- JWT & Firebase-admin protected routes
- Environment-based secure configuration with
dotenv - Seamless integration with the ThriveSecure client
ThriveSecure Client Repository
- REST API with CRUD operations for insurance data
- Stripe payment integration for premium handling
- Firebase Admin authentication & JWT token system
- CORS-enabled for frontend-backend interaction
- Environment configuration using
.env - Ready for deployment with
vercel.json
- Runtime: Node.js
- Framework: Express.js
- Database: MongoDB
- Authentication: Firebase Admin SDK + JWT
- Payments: Stripe SDK
- Environment Config: dotenv
- Deployment: Vercel
| Package | Purpose |
|---|---|
cors |
Enable cross-origin requests |
dotenv |
Manage environment variables |
express |
Server setup and API endpoints |
firebase-admin |
Firebase server-side integration |
mongodb |
MongoDB client and query management |
stripe |
Stripe payment processing |
-
Clone the repository:
git clone https://github.com/ameerhamzahd/ThriveSecure-Server.git cd ThriveSecure-Server -
Install dependencies:
npm install
-
Set up environment variables:
Create a
.envfile and add your variables:DB_USERNAME=your_database_username DB_PASSWORD=your_database_password ACCESS_TOKEN_SECRET=your_jwt_secret STRIPE_SECRET_KEY=your_stripe_secret_key
-
Run locally:
nodemon index.js
-
Install Vercel CLI (if not already):
npm install -g vercel
-
Login to your Vercel account:
vercel login
-
Deploy your server:
vercel --prod
For issues or suggestions, please contact: ameerhamzah.daiyan@gmail.com
This project is licensed under the MIT License.
Thanks to Firebase, Stripe, and the Node.js ecosystem for powering this project.