{"id":28676422,"url":"https://github.com/thesoftwarewizard/react-map-view","last_synced_at":"2025-10-24T22:10:59.248Z","repository":{"id":279886720,"uuid":"940329791","full_name":"TheSoftwareWizard/React-Map-View","owner":"TheSoftwareWizard","description":"This app it's just a technical test for a Job position on Fogata Group","archived":false,"fork":false,"pushed_at":"2025-02-28T02:23:35.000Z","size":1379,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T22:29:46.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheSoftwareWizard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-28T01:47:19.000Z","updated_at":"2025-02-28T13:04:25.000Z","dependencies_parsed_at":"2025-02-28T09:55:03.193Z","dependency_job_id":"6a930033-8336-4233-9b52-3b6afdaf1545","html_url":"https://github.com/TheSoftwareWizard/React-Map-View","commit_stats":null,"previous_names":["drakslab/react-map-view","wizardofsoftware/react-map-view","thesoftwarewizard/react-map-view"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheSoftwareWizard/React-Map-View","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareWizard%2FReact-Map-View","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareWizard%2FReact-Map-View/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareWizard%2FReact-Map-View/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareWizard%2FReact-Map-View/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheSoftwareWizard","download_url":"https://codeload.github.com/TheSoftwareWizard/React-Map-View/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareWizard%2FReact-Map-View/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259732774,"owners_count":22903087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-13T23:04:22.507Z","updated_at":"2025-10-24T22:10:54.212Z","avatar_url":"https://github.com/TheSoftwareWizard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Map App with Flask Backend\n\nThis project is a simple web application that displays an interactive map with pins using **React**, **Leaflet**, and **Flask**. Users can add new pins by clicking on the map, and the details of each pin can be viewed in a sidebar. Additionally, a Flask backend is integrated to simulate data fetching for the pins.\n\n## Features\n\n- **Interactive Map**: Displays a map using [Leaflet](https://leafletjs.com/) with custom markers.\n- **Add Pins**: Users can click on the map to add new pins, with the pin details (latitude, longitude, and name) displayed.\n- **Sidebar**: A sidebar shows the details of the selected pin.\n- **Mock API Backend**: Simulated API calls using **Axios** to fetch pin data from a mock Flask backend.\n\n## Project Structure\n\n```\nreact-map-app/\n│\n├── backend/               # Flask backend\n│   └── app.py             # Flask app (API for managing pins)\n│\n├── src/\n│    ├── Components/    # React components\n         └── MapView.jsx # Map View Component\n         └── mapview.css # Map View Styles\n│    └── App.jsx         # React app entry point\n│\n├── package.json           # React app configuration\n└── README.md              # Project documentation\n```\n\n## Getting Started\n\nFollow these steps to get the project up and running on your local machine.\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/)\n- [Python](https://www.python.org/downloads/)\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/draklabs/react-map-app.git\ncd react-map-app\n\n2. Set up the backend (Flask)\n\n    Navigate to the backend directory.\n\ncd backend\n\n    Create a virtual environment and activate it:\n\npython -m venv venv\nsource venv/bin/activate  # On Linux/Mac\n# or\nvenv\\Scripts\\activate  # On Windows\n\n    Install Flask:\n\npip install -r requirements.txt\n\npython app.py\n\nThe Flask server will run on http://localhost:5000.\n3. Set up the frontend (React)\n\n    Navigate to the frontend directory:\n\n    Install the dependencies:\n\nnpm install\n\n    Start the development server:\n\nnpm run dev\n\nThe React app will run on http://localhost:5173.\n4. Build and deploy\n\nTo create a production build of the React app, run:\n\nnpm run build\n\nTo preview the build:\n\nnpm run preview\n\nDependencies\n\n    Frontend:\n        React\n        Leaflet (for map rendering)\n        React-Leaflet (for integrating Leaflet with React)\n        Axios (for mock API requests)\n        React-Bootstrap (for UI components)\n    Backend:\n        Flask (for serving the mock API)\n        Flask-CORS (for handling cross-origin resource sharing)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesoftwarewizard%2Freact-map-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesoftwarewizard%2Freact-map-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesoftwarewizard%2Freact-map-view/lists"}