A modern vehicle rental management system that connects vehicle owners with customers looking to rent vehicles for short-term use.
- Vehicle Listings: Browse and search available vehicles
- Booking System: Easy online booking with real-time availability
- Owner Portal: Vehicle owners can list and manage their vehicles
- Responsive Design: Works on desktop and mobile devices
- React.js
- Tailwind CSS
- React Router
- Axios for API calls
- Node.js with Express
- MongoDB with Mongoose
- RESTful API
- Node.js (v14 or higher)
- npm
- MongoDB (local or Atlas)
-
Clone the repository
git clone https://github.com/Liladharithole/fleetlink.git cd fleetlink/backend -
Install dependencies
npm install
-
Set up environment variables
cp .env.example .env # Edit .env with your configuration -
Start the development server
npm run dev
-
Navigate to the frontend directory
cd ../frontend -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open http://localhost:5173 in your browser
MONGODB_URI=mongodb://localhost:27017/fleetlink
PORT=3000
GET /api/vehicles- Get all vehiclesGET /api/vehicles/available- Get available vehiclesPOST /api/vehicles- Add a new vehicle
POST /api/bookings- Create a new bookingGET /api/bookings- Get all bookings