Skip to content

Commit dc161f9

Browse files
Merge pull request #163 from OpenSourceFellows/docs/update-readme-and-package-metadata
Update README and package.json metadata
2 parents da92f60 + 11df25c commit dc161f9

File tree

4 files changed

+116
-44
lines changed

4 files changed

+116
-44
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ Click the **"Fork"** button on the top right of this page to create a copy of th
1111

1212
### 2. Clone Your Fork Locally
1313

14-
```bash
14+
```sh
1515
git clone https://github.com/YOUR-USERNAME/YOUR-FORK.git
1616
cd YOUR-FORK
1717
```
1818

1919
### 3. Add the Original Repo as a Remote
2020

21-
```bash
21+
```sh
2222
git remote add upstream https://github.com/OpenSourceFellows/map-dashboard.git
2323
```
2424

2525
### 4. Create a New Branch for Your Work
2626

2727
Never work directly on main or reuse old branches.
2828

29-
```bash
29+
```sh
3030
git checkout main
3131
git pull upstream main
3232
git checkout -b feature/your-feature-name
@@ -36,14 +36,14 @@ git checkout -b feature/your-feature-name
3636

3737
Make your changes locally, and commit them:
3838

39-
```bash
39+
```sh
4040
git add .
4141
git commit -m "Add: brief description of your change"
4242
```
4343

4444
### 6. Push the Branch to Your Fork
4545

46-
```bash
46+
```sh
4747
git push origin feature/your-feature-name
4848
```
4949

@@ -59,7 +59,7 @@ git push origin feature/your-feature-name
5959

6060
Before starting new work, always sync your fork:
6161

62-
```bash
62+
```sh
6363
git checkout main
6464
git fetch upstream
6565
git merge upstream/main

README.md

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
2830
2. 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
3846
pnpm run dev
3947
```
4048

4149
The 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

docs/MAINTAINER.md

Lines changed: 57 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,68 @@
1-
1. **Review in GitHub UI**:
1+
# Maintainer Guide
22

3-
- Check "Files changed" tab.
4-
- Comment on lines if needed.
5-
- Approve or request changes.
3+
This guide is for maintainers with write access to the repository.
64

7-
2. **Check out the PR locally (optional)**:
8-
If you want to test it locally:
5+
**Key difference from contributors:** You can create branches directly in the main repository instead of forking.
96

10-
```bash
11-
gh pr checkout <PR-number>
12-
```
7+
## Branch Naming Patterns
138

14-
3. **Merge strategy:**
9+
Based on existing branches in the repository:
1510

16-
- Use Squash and Merge to keep history clean.
17-
- Optionally delete the contributor’s branch (GitHub asks this by default).
11+
- `feature/` - New features (e.g., `feature/dark-mode`, `feature/navbar`)
12+
- `chore/` - Maintenance tasks (e.g., `chore/switch-to-pnpm`, `chore/organize-files`)
13+
- `docs/` - Documentation updates (e.g., `docs/update-readme-and-package-metadata`)
14+
- `Issue-##` - Issue-specific work (e.g., `Issue-10`, `Issue-67`)
1815

19-
---
16+
**Creating a branch:**
17+
```sh
18+
git checkout main
19+
git pull origin main
20+
git checkout -b <type>/<descriptive-name>
21+
```
2022

21-
### 🔁 If the Contributor Will Submit More Work
23+
## Creating Pull Requests
2224

23-
- Remind them to:
24-
- Create a new branch for each PR.
25-
- Keep their fork synced regularly.
25+
Push your branch:
2626

27-
---
27+
```sh
28+
git push -u origin <your-branch-name>
29+
```
2830

29-
### 🧪 Optional: Automation Tools to Consider
31+
Create PR using [GitHub CLI](https://cli.github.com/) (requires installation):
3032

31-
- GitHub Actions – for linting, testing, or builds.
32-
- PR Labelers – auto-label PRs.
33-
- CODEOWNERS – assign reviewers automatically.
33+
```sh
34+
gh pr create --title "Your PR title" --fill
35+
```
36+
37+
## Reviewing Pull Requests
38+
39+
### 1. Review in GitHub UI
40+
41+
- Check the **"Files changed"** tab
42+
- Comment on lines if needed
43+
- Approve or request changes
44+
45+
### 2. Check out PR locally (optional)
46+
47+
If you want to test it locally, use [GitHub CLI](https://cli.github.com/):
48+
49+
```sh
50+
gh pr checkout <PR-number>
51+
```
52+
53+
### 3. Merge Strategy
54+
55+
- Use **Squash and Merge** to keep history clean
56+
- Optionally delete the contributor's branch (GitHub prompts by default)
57+
58+
## If a Contributor Will Submit More Work
59+
60+
Remind them to:
61+
- Create a new branch for each PR
62+
- Keep their fork synced regularly
63+
64+
## Optional: Automation Tools to Consider
65+
66+
- GitHub Actions – for linting, testing, or builds
67+
- PR Labelers – auto-label PRs
68+
- CODEOWNERS – assign reviewers automatically

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{
2-
"name": "frontend",
2+
"name": "map-dashboard",
3+
"description": "Interactive map dashboard for environmental geospatial data",
34
"private": true,
45
"version": "0.0.0",
56
"type": "module",
7+
"license": "SEE LICENSE IN LICENSE.md",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/OpenSourceFellows/map-dashboard.git"
11+
},
612
"engines": {
713
"node": ">=20.11.0",
8-
"npm": ">=10.0.0"
14+
"pnpm": ">=9.0.0"
915
},
1016
"scripts": {
1117
"dev": "vite",

0 commit comments

Comments
 (0)