Skip to content

Technical-Mavle/PARAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PARAS - Smart Parking Management System

Live Demo React Vite Tailwind CSS

A modern, full-stack parking management solution with real-time availability tracking, AI-powered analytics, beautiful UI animations, and integrated mapping. Built with React, Vite, and enhanced with Aceternity UI components.

✨ Features

🎨 Modern UI & Animations

  • Aceternity UI Components: Beautiful animated components with Framer Motion
  • Responsive Design: Optimized for desktop and mobile devices
  • Interactive Animations: Smooth transitions and micro-interactions
  • Glassmorphism Effects: Modern glass-like UI elements
  • Gradient Backgrounds: Beautiful color schemes throughout

πŸ—ΊοΈ Smart Mapping & Navigation

  • Interactive Maps: Google Maps integration with custom markers
  • Real-time Directions: Automatic route calculation and display
  • Mobile-Optimized: Touch-friendly map interactions
  • Auto-Nearest Parking: Automatically finds and shows nearest parking
  • Visual Route Display: Blue polylines showing the path to parking

πŸš— Parking Management

  • Real-time Availability: Live parking spot tracking
  • Smart Search: Location-based parking discovery
  • Booking System: Easy reservation and management
  • Price Tracking: Dynamic pricing information
  • Distance Calculation: Automatic distance and duration estimates

πŸ€– AI & Analytics

  • AI-Generated Reports: Smart congestion analysis
  • Admin Dashboard: Comprehensive booking analytics
  • PDF Generation: Automated report creation
  • Data Visualization: Charts and graphs for insights

πŸ“± Mobile Experience

  • Full-Screen Maps: Uninterrupted map viewing
  • Touch Interactions: Optimized for mobile devices
  • Direct Booking: Tap parking spots to book instantly
  • Responsive UI: Adapts to all screen sizes

πŸ› οΈ Installation

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • Google Maps API key
  • Supabase account

Step 1: Clone the Repository

git clone https://github.com/tanmayrajurkar/PARAS.git
cd PARAS

Step 2: Install Dependencies

Important: Use the --legacy-peer-deps flag due to some older dependencies:

npm install --legacy-peer-deps

Or use the provided script:

npm run install:legacy

Alternative with yarn:

yarn install

Step 3: Environment Setup

Create a .env file in the root directory:

# Supabase Configuration
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

# Google Maps API
VITE_GOOGLE_MAPS_API_KEY=your_google_maps_api_key

# AI Integration
VITE_GEMINI_API_KEY=your_google_gemini_api_key

Step 4: Database Setup

  1. Create a new Supabase project
  2. Run the migration files in supabase/migrations/
  3. Set up the required tables and functions

Step 5: Start Development Server

npm run dev

The application will be available at http://localhost:5173

πŸš€ Running the Application

Development Mode

npm run dev

Opens the app at http://localhost:5173

Production Build

npm run build
npm run preview

Linting

npm run lint

πŸ› οΈ Tech Stack

Component Technology Version Purpose
Frontend React 18.3.1 UI Framework
Build Tool Vite 5.4.11 Fast development & building
Styling Tailwind CSS 3.4.11 Utility-first CSS
Animations Framer Motion Latest Smooth animations
UI Components Aceternity UI Custom Beautiful animated components
State Management Redux Toolkit 1.9.5 Global state management
Maps Google Maps API Latest Interactive mapping
Database Supabase 2.46.1 PostgreSQL database
AI Google Gemini 0.21.0 AI-powered analytics
HTTP Client Axios 1.4.0 API requests
Routing React Router 6.14.2 Client-side routing

πŸ“‚ Project Structure

PARAS/
β”œβ”€β”€ public/                 # Static assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/         # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ ui/            # Aceternity UI components
β”‚   β”‚   β”œβ”€β”€ bookings/      # Booking-related components
β”‚   β”‚   β”œβ”€β”€ mapBookings/   # Map and location components
β”‚   β”‚   └── ...           # Other component categories
β”‚   β”œβ”€β”€ features/          # Redux slices and state management
β”‚   β”œβ”€β”€ pages/             # Application routes and pages
β”‚   β”œβ”€β”€ services/          # API services and external integrations
β”‚   β”œβ”€β”€ hooks/             # Custom React hooks
β”‚   β”œβ”€β”€ utils/             # Utility functions
β”‚   β”œβ”€β”€ assets/            # Images, icons, and static files
β”‚   └── lib/               # Library configurations
β”œβ”€β”€ supabase/              # Database migrations and functions
β”œβ”€β”€ package.json           # Dependencies and scripts
└── README.md             # This file

🎨 UI Components

Aceternity UI Integration

  • AnimatedText: Typewriter effect with blinking cursor
  • AnimatedCard: Cards with hover effects and gradient overlays
  • GlareCard: Interactive cards with glare effects
  • ShimmerButton: Buttons with shimmer animations
  • FloatingElements: Background floating particles
  • AnimatedLoader: Beautiful loading spinners

Custom Components

  • MobileMap: Touch-optimized map component
  • ParkCard: Enhanced parking spot cards
  • AnimatedHeader: Animated section headers
  • InfoWindow: Mobile-optimized information displays

πŸ”§ Configuration

Environment Variables

All environment variables are prefixed with VITE_ for Vite compatibility:

# Database
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

# Maps
VITE_GOOGLE_MAPS_API_KEY=your_google_maps_api_key

# AI
VITE_GEMINI_API_KEY=your_google_gemini_api_key

Google Maps Setup

  1. Enable the following APIs in Google Cloud Console:
    • Maps JavaScript API
    • Places API
    • Directions API
    • Geocoding API

Supabase Setup

  1. Create a new Supabase project
  2. Run the migration files in supabase/migrations/
  3. Enable Row Level Security (RLS)
  4. Set up authentication policies

πŸ› Troubleshooting

Common Issues

1. Dependency Conflicts

# If you encounter peer dependency issues
npm install --legacy-peer-deps
# Or use the provided script
npm run install:legacy

2. Google Maps Not Loading

  • Verify your API key is correct
  • Check if the required APIs are enabled
  • Ensure billing is set up for your Google Cloud project

3. Supabase Connection Issues

  • Verify your project URL and anon key
  • Check if RLS policies are properly configured
  • Ensure your database tables are created

4. Build Errors

# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install --legacy-peer-deps
# Or use the provided script
npm run install:legacy

πŸ“± Mobile Optimization

Features

  • Touch-Friendly: All interactions optimized for mobile
  • Responsive Design: Adapts to all screen sizes
  • Full-Screen Maps: Uninterrupted map viewing
  • Direct Booking: Tap parking spots to book instantly
  • Auto-Navigation: Automatic route calculation and display

Browser Support

  • Chrome (Mobile & Desktop)
  • Safari (Mobile & Desktop)
  • Firefox (Mobile & Desktop)
  • Edge (Desktop)

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch:
git checkout -b feature/amazing-feature
  1. Commit your changes:
git commit -m 'Add some amazing feature'
  1. Push to the branch:
git push origin feature/amazing-feature
  1. Open a Pull Request

πŸ“„ License

MIT License - See LICENSE for details

πŸ™ Acknowledgments


Note: This project requires Google Maps API key and Supabase credentials for full functionality. Make sure to set up all environment variables before running the application.

About

PARAS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors