A React-based profile management web application with map integration. Users and admins can view profile details along with their geolocation rendered via static maps powered by Google Maps. Built for clarity, modularity, and a better user/admin experience.
- π Geocoding with Google Maps API
- πΊοΈ Static map rendering for profile locations
- π€ Separate User and Admin views
- π Click-to-view map modal in Admin dashboard
- Frontend: React
- Geocoding & Maps: Google Maps API
Make sure you have the following installed:
- Node.js (v14 or higher)
- npm or yarn
- A Google Maps API key
git clone https://github.com/your-username/profile-mapper.git
cd profile-mapper
npm install-
Create a
.envfile and add your Google Maps API key:REACT_APP_GOOGLE_MAPS_API_KEY=your_api_key_here -
Start the development server:
npm startThe app will be running at http://localhost:3000
geocodeAddress(address): Converts an address into latitude and longitude using Google Maps Geocoding API.getStaticMapUrl(lat, lon): Generates a static Google Maps image URL using coordinates.- Admin dashboard displays a modal with the map when "View" is clicked, ensuring clean UI and performance.
Pull requests are welcome! For major changes, open an issue to discuss what youβd like to improve or add.