New
No description available
Install / Use
/learn @strfadvisory/NewREADME
Enterprise Reserve Management System
A full-stack application for managing reserve funds and advisory services.
Quick Start
Default Admin Credentials
- Email: admin@reservefundadvisory.com
- Password: Admin@123
Setup Instructions
Prerequisites
- Node.js 18+
- MongoDB (local or cloud)
- Docker (optional)
Development Setup
-
Clone and Install Dependencies
# Install client dependencies cd client npm install # Install server dependencies cd ../server npm install -
Environment Configuration
# Copy environment files cp .env.example .env cp server/.env.example server/.env -
Database Setup
# Run migrations cd server npm run migrate # Seed super admin npm run seed:superadmin -
Start Development Servers
# Terminal 1 - Start backend cd server npm run dev # Terminal 2 - Start frontend cd client npm start
Docker Setup
-
Development with Docker
docker-compose up -
Production with Docker
docker-compose -f docker-compose.prod.yml up
Project Structure
├── client/ # React frontend
│ ├── src/
│ │ ├── components/ # Reusable components
│ │ ├── pages/ # Page components
│ │ ├── services/ # API services
│ │ └── utils/ # Utility functions
│ └── public/
├── server/ # Node.js backend
│ ├── controllers/ # Route controllers
│ ├── models/ # Database models
│ ├── routes/ # API routes
│ ├── middleware/ # Custom middleware
│ ├── services/ # Business logic
│ └── migrations/ # Database migrations
└── docker-compose.yml # Docker configuration
Features
- User authentication and authorization
- Role-based access control
- Company profile management
- Advisory invitation system
- Library management
- Super admin dashboard
- Responsive design
API Endpoints
Authentication
POST /api/auth/login- User loginPOST /api/auth/register- User registrationPOST /api/auth/verify-otp- OTP verification
Users
GET /api/users- Get all usersPUT /api/users/:id/status- Update user status
Roles
GET /api/roles- Get all rolesPOST /api/roles- Create new role
Library
GET /api/library- Get library itemsPOST /api/library- Create library item
Troubleshooting
Common Issues
-
MongoDB Connection Error
- Check MONGO_URI in environment variables
- Ensure MongoDB is running
- Verify network connectivity
-
Missing Dependencies
- Run
npm installin both client and server directories - Clear node_modules and reinstall if needed
- Run
-
Port Conflicts
- Client runs on port 3000
- Server runs on port 5000
- Change ports in environment variables if needed
-
Docker Issues
- Ensure Docker is running
- Check for port conflicts
- Rebuild containers:
docker-compose build --no-cache
Scripts
Server Scripts
npm start- Start production servernpm run dev- Start development servernpm run migrate- Run database migrationsnpm run seed:superadmin- Create super admin user
Client Scripts
npm start- Start development servernpm run build- Build for production
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests
- Submit a pull request
License
Private - All rights reserved
