Welcome to the Car Rental Website repository! This project is a fully-featured car rental application that provides seamless online booking, ride delivery, and car hiring services. The platform features separate user and admin panels and integrates modern web technologies for a smooth experience.
- Online Car Rental and Booking: Avoid long lines by booking your preferred car online.
- Delivery Services: Get your booked car delivered to your location.
- Ride Booking and Hiring: Book rides for your trips or hire cars for a specified duration.
- Manage cars (CRUD operations).
- Track bookings and payments.
- Monitor user activity and system performance.
- Browse available cars.
- Book, hire, and request delivery services.
- Track and manage bookings and payments.
- Paystack: Secure payment gateway for processing transactions.
- PostgreSQL on Neon: A modern, high-performance database hosted on Neon for efficient data management.
- Next.js: For server-side rendering and building a fast, scalable frontend.
- React: For creating reusable UI components.
- ShadCN: For stylish, customizable design components.
- Hono: A lightweight, fast web framework for handling API requests.
- PostgreSQL: For relational data storage.
- Neon: A cloud-native PostgreSQL platform for enhanced performance and scalability.
- Paystack: To handle secure and reliable payment processing.
Follow these steps to set up the project locally:
-
Clone the Repository:
git clone https://github.com/devalentineomonya/Car-Rential-Website-Next-TS-Hono-React-Shadcn.git cd Car-Rential-Website-Next-TS-Hono-React-Shadcn
-
Install Dependencies: Ensure you have Node.js and npm or Yarn installed, then run:
npm install # or yarn install
-
Configure Environment Variables: Create a
.env
file in the root directory and add the following:DATABASE_URL=your_neon_database_url PAYSTACK_SECRET_KEY=your_paystack_secret_key NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY=your_paystack_public_key
-
Run the Development Server:
npm run dev # or yarn dev
The application will be available at
http://localhost:3000
. -
Build for Production:
npm run build
.
├── components # Reusable React components
├── pages # Next.js pages
├── public # Static assets
├── server # Hono backend server
├── styles # Global and component-specific styles
├── utils # Helper functions and utilities
├── prisma # Prisma schema for PostgreSQL
└── .env # Environment variables
- Deploy the frontend on platforms like Vercel.
- Deploy the backend on your preferred hosting provider.
- Use Neon to host the PostgreSQL database.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the MIT License.
Developed by Valentine Omonya.