Welcome to the Mini Loan App! This application provides a platform for managing loans for both administrators and clients.
- User Registration and Loan Request
- Loan Approval Process
- Repayment Management
- Additional Loan Requests
To clone the Mini Loan App project from GitHub, follow these steps:
-
Open your terminal or command prompt.
-
Navigate to the directory where you want to clone the project.
-
Use the following command to clone the repository:
git clone https://github.com/your-username/mini-loan-app.git cd mini-loan-app
If you prefer to run the application locally, follow these steps:
- Navigate to the client directory:
cd client
- Install dependencies:
npm install
- Run the client:
npm run dev
- Navigate to the server directory:
cd ../server
- Install dependencies:
npm install
- Run the server:
nodemon
Make sure the server is running on Port 5000 and the client on Port 5173.
To upgrade a user to an administrator:
- Log in using the provided admin credentials.
- Navigate to the user management section.
- Select the user you want to upgrade.
- Modify the user's profile in the MongoDB database, changing the
user_type
field from "user" to "admin". - The user will now have administrative privileges and can access the admin features of the application.
Feel free to explore and enjoy managing your loans!