Skip to content

Buy & Sell New & Used Vehicles Easily πŸš—πŸš™πŸοΈ A seamless platform for buying and selling new and used vehicles. Browse listings, connect with sellers, and find the best deals effortlessly!

Notifications You must be signed in to change notification settings

Gyaneshkr5009/Moto_Hub

Repository files navigation

Moto-Hub

Moto-Hub is a feature-rich web application designed to simplify the process of buying, selling, and renting vehicles. Built with modern technologies like React, Vite, and Tailwind CSS, it offers a seamless and intuitive user experience. Whether you're a car enthusiast, a dealer, or someone looking for their next ride, Moto-Hub has you covered.


πŸš€ Features

User Features

  • User Authentication: Secure login and registration powered by Clerk.
  • Dynamic Listings: Add, edit, and delete car listings with real-time updates.
  • Advanced Search: Filter cars by category, make, condition, price, and more.
  • Financial Calculator: Calculate monthly payments for car loans directly on the platform.
  • Real-Time Messaging: Communicate with buyers and sellers using Sendbird's chat integration.

Admin Features

  • Image Management: Upload and manage car images using Appwrite's storage service.
  • Database Management: Manage listings and user data with Drizzle ORM and PostgreSQL.
  • Analytics: Track the most searched cars and user interactions.

Design Features

  • Responsive Design: Fully optimized for mobile, tablet, and desktop devices.
  • Modern UI: Built with Tailwind CSS for a clean and professional look.
  • Interactive Components: Dynamic carousels, dropdowns, and modals for enhanced usability.

πŸ› οΈ Tech Stack

  • Frontend: React, Vite, Tailwind CSS
  • Backend: PostgreSQL, Drizzle ORM
  • Authentication: Clerk
  • Storage: Appwrite
  • Messaging: Sendbird
  • Utilities: Axios, Moment.js, Faker.js

πŸ“¦ Getting Started

Follow these steps to set up and run the project locally:

Prerequisites

Ensure you have the following installed:

  • Node.js (v16 or higher)
  • npm or yarn
  • PostgreSQL database
  • Appwrite account for image storage
  • Clerk account for authentication

Installation

  1. Clone the repository:
    git clone <repository-url>
  2. Navigate to the project directory:
    cd car-hub
  3. Install dependencies:
    npm install

Environment Variables

Create a .env file in the root directory and add the following variables:

VITE_CLERK_PUBLISHABLE_KEY=<your-clerk-publishable-key>
VITE_APPWRITE_PROJECT_ID=<your-appwrite-project-id>
VITE_APPWRITE_STORAGE_ID=<your-appwrite-storage-id>
VITE_DRIZZLE_DATABASE_URL=<your-database-url>

Running the Application

  1. Start the development server:
    npm run dev
  2. Open your browser and navigate to http://localhost:5173.

πŸ—„οΈ Database Setup

Moto-Hub uses PostgreSQL as its database. To set up the database schema, run the following command:

npm run db:push

To explore the database visually, use the Drizzle Studio:

npm run db:studio

πŸ—οΈ Building for Production

To build the application for production, run:

npm run build

The production-ready files will be available in the dist directory.


🀝 Contributing

We welcome contributions from the community! Here's how you can get involved:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix:
    git checkout -b feature/your-feature-name
  3. Commit your changes:
    git commit -m "Add your message here"
  4. Push to your branch:
    git push origin feature/your-feature-name
  5. Submit a pull request.

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.


πŸ“§ Contact

For any questions or feedback, feel free to reach out:

About

Buy & Sell New & Used Vehicles Easily πŸš—πŸš™πŸοΈ A seamless platform for buying and selling new and used vehicles. Browse listings, connect with sellers, and find the best deals effortlessly!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published