This is the frontend of the Parking Reservation System, built using React (Vite), TypeScript, Tailwind CSS, Material UI, and Leaflet.js for interactive map visualization. It allows users to search for parking spots, view availability, reserve spots, and manage reservations.
- 🌍 Interactive Map (OpenStreetMap + Leaflet.js): Displays available and reserved parking spots.
- 🔎 Search & Autocomplete: Users can search parking spots by location.
- 🟢 Real-time Spot Availability: Shows available and reserved spots (Blue = Available, Red = Reserved).
- 💳 Reservation System: Users can reserve parking spots.
- 🛠 Admin Dashboard: Monitors reservations and parking spot data.
- 🔄 REST API Integration: Connects to the Django backend for real-time updates. (Repo)[https://github.com/PranjaliSachan/parking_backend]
git clone https://github.com/PranjaliSachan/parking-frontend.git
cd parking-frontend
npm install # OR yarn install
Create a .env file in the project root and configure the API base URL:
VITE_API_URL=https://your-backend-url.com/api
npm run dev # OR yarn dev
Frontend will be available at http://localhost:5173 🚀
Method | Endpoint | Description |
---|---|---|
GET | /api/spots/ |
Get all parking spots |
POST | /api/reserve/ |
Reserve a parking spot |
- Frontend: React (Vite), TypeScript, Tailwind CSS, Material UI
- Maps: Leaflet.js, OpenStreetMap
- State Management: React Hooks
- API: Axios for REST API calls
- Deployment: Netlify
Feel free to contribute! Fork the repository and submit a pull request.
MIT License. Free to use and modify!