RentKr is a rental platform that allows users to rent various daily-use products, including electronics, clothing, books, and two-wheelers. It simplifies the rental process by connecting individuals who need short-term access to products with those who are willing to lend them out. Whether you need a gadget for a few days, a vehicle for a weekend trip, or a book to read, RentKr provides a seamless solution for finding and renting these items.
- Browse a wide variety of products available for rent.
- Easy rental process with a user-friendly interface.
- Filter products by categories (electronics, wearables, books, two-wheelers).
- Track and manage rental status (pending, active, returned).
- Secure login and registration system for users.
- Rental history and ratings for transparency.
- MongoDB: Database for storing user information, product listings, and rental data.
- Express: Backend framework for building REST APIs.
- React: Frontend library for building a dynamic user interface.
- Node.js: Server-side runtime environment.
To set up the project locally:
-
Clone the repository:
git clone https://github.com/your-username/RentKr.git
-
Navigate to the project directory:
cd RentKr
-
Install dependencies for both backend and frontend:
npm install cd client npm install
-
Set up environment variables for the project:
MONGO_URI
: Your MongoDB connection string.JWT_SECRET
: A secret key for JWT authentication.
-
Run the development servers:
# Backend npm start # Frontend (in the 'client' directory) npm start
-
Access the app locally at
http://localhost:3000
.
- Sign Up: Create an account to start renting or listing items.
- Browse Products: View available items for rent by categories or search for specific products.
- Rent an Item: Choose a product, review rental terms, and confirm the rental.
- Manage Rentals: Track rental duration, return dates, and history.
Create a .env
file in the root directory and add the following:
MONGO_URI=your_mongo_db_connection_string
JWT_SECRET=your_jwt_secret_key
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.