Skip to content

Faizan-9077/profile-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌍 Profile Mapper

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.

✨ Features

  • πŸ” Geocoding with Google Maps API
  • πŸ—ΊοΈ Static map rendering for profile locations
  • πŸ‘€ Separate User and Admin views
  • πŸ“ Click-to-view map modal in Admin dashboard

πŸ› οΈ Tech Stack

  • Frontend: React
  • Geocoding & Maps: Google Maps API

πŸš€ Getting Started

Prerequisites

Make sure you have the following installed:

  • Node.js (v14 or higher)
  • npm or yarn
  • A Google Maps API key

Installation

git clone https://github.com/your-username/profile-mapper.git
cd profile-mapper
npm install

Running the App

  1. Create a .env file and add your Google Maps API key:

    REACT_APP_GOOGLE_MAPS_API_KEY=your_api_key_here
    
  2. Start the development server:

npm start

The app will be running at http://localhost:3000

🌐 Map Integration Details

  • 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.

πŸ™Œ Contributing

Pull requests are welcome! For major changes, open an issue to discuss what you’d like to improve or add.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published