@@ -6,7 +6,8 @@ A modern, interactive map dashboard built with React and Vite. This project prov
66
77## Features
88
9- - Interactive map visualization (placeholder, ready for integration)
9+ - Interactive map visualization with Leaflet
10+ - Dark mode support
1011- Layer controls for toggling map data
1112- Custom UI components (Button, CheckBox)
1213- Responsive layout and styling
@@ -15,7 +16,7 @@ A modern, interactive map dashboard built with React and Vite. This project prov
1516
1617## Prerequisites
1718
18- - Node.js (v18 or higher recommended)
19+ - Node.js (v20 or higher recommended)
1920- pnpm (v9 or higher)
2021
2122## Installation
@@ -25,32 +26,61 @@ A modern, interactive map dashboard built with React and Vite. This project prov
2526 git clone https://github.com/OpenSourceFellows/map-dashboard.git
2627 cd map-dashboard
2728 ```
29+
28302 . Install dependencies:
2931 ``` sh
3032 pnpm install
3133 ```
3234
35+ 3 . ** Optional** : For full development setup, you may also need the companion backend server:
36+ ``` sh
37+ git clone https://github.com/OpenSourceFellows/dashboard-server.git
38+ ```
39+ See the [ dashboard-server repository] ( https://github.com/OpenSourceFellows/dashboard-server ) for backend setup instructions.
40+
3341## Development
3442
35- To start the development server:
43+ Start the development server:
3644
3745``` sh
3846pnpm run dev
3947```
4048
4149The app will be available at ` http://localhost:5173 ` by default.
4250
51+ Build for production:
52+
53+ ``` sh
54+ pnpm run build
55+ ```
56+
57+ Preview production build:
58+
59+ ``` sh
60+ pnpm run preview
61+ ```
62+
63+ Run linter:
64+
65+ ``` sh
66+ pnpm run lint
67+ ```
68+
4369## Project Structure
4470
4571```
46- main /
72+ map-dashboard /
4773├── public/ # Static assets
4874├── src/ # Source code
4975│ ├── components/ # UI and map components
76+ │ │ ├── Layout/ # Header and layout components
77+ │ │ ├── Map/ # Map-related components
78+ │ │ └── UI/ # Reusable UI components
5079│ ├── data/ # Mock data
5180│ ├── hooks/ # Custom React hooks
5281│ ├── styles/ # CSS files
5382│ ├── types/ # TypeScript types
83+ │ ├── utils/ # Utility functions
5484│ ├── App.tsx # Main app component
5585│ └── main.tsx # Entry point
5686├── package.json # Project metadata and scripts
@@ -63,20 +93,21 @@ main/
6393- [ React] ( https://react.dev/ ) – UI library
6494- [ Vite] ( https://vitejs.dev/ ) – Fast build tool
6595- [ TypeScript] ( https://www.typescriptlang.org/ ) – Type safety
96+ - [ Leaflet] ( https://leafletjs.com/ ) – Interactive maps
97+ - [ React Leaflet] ( https://react-leaflet.js.org/ ) – React components for Leaflet
6698- [ ESLint] ( https://eslint.org/ ) – Linting
6799
68100## Custom Components
69101
70102- ` Header ` – App title and navigation
71- - ` MapContainer ` – Map area and controls
72- - ` LayerControls ` – Toggle map layers
73- - ` MapLegend ` – Map legend
74- - ` Button ` & ` CheckBox ` – UI elements
75-
76- ## How to Contribute
77-
78- [ CONTRIBUTING.md] ( CONTRIBUTING.md )
103+ - ` MapContainer ` – Interactive Leaflet map with markers and polygons
104+ - ` LayerControls ` – Toggle map layers and data types
105+ - ` MapLegend ` – Map legend display
106+ - ` CheckBox ` – UI checkbox component
79107
80- ## License
108+ ## Additional Documentation
81109
82- [ LICENSE.md] ( LICENSE.md )
110+ - [ CONTRIBUTING.md] ( CONTRIBUTING.md ) - Contribution guidelines
111+ - [ LICENSE.md] ( LICENSE.md ) - License information
112+ - [ docs/MAINTAINER.md] ( docs/MAINTAINER.md ) - Maintainer guide
113+ - [ docs/QGIS_ATTRIBUTE_PRESERVATION.md] ( docs/QGIS_ATTRIBUTE_PRESERVATION.md ) - QGIS data layer documentation
0 commit comments