Skip to content

roshanx0/car-rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Car Rental App 🚗

A basic car rental system built with:

  • Frontend: React + Tailwind CSS
  • Backend: Node.js/Express
  • Database: MongoDB

Features

  • User authentication (login/registration)
  • Car listing with filters
  • Car details page
  • Booking system
  • Responsive design with Tailwind CSS

🔒 Setup Instructions

1. Clone the repository

git clone https://github.com/roshanx0/car-rental.git
cd car-rental

2. Backend Setup

cd backend
npm install

Create .env file:

touch .env

Add these variables (replace with your own values):

MONGO_URI=mongodb+srv://<username>:<password>@your-cluster.mongodb.net/car-rental
PORT=5000
JWT_SECRET=your_random_secret_key_here

Start server:

npm start

3. Frontend Setup

cd frontend/rentacar
npm install
npm run dev

Screenshots

(Add some screenshots later)

Folder Structure

backend/       # API code
frontend/      # React app
  └─ rentacar/ # Main frontend

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages