Skip to content

Commit 82f4826

Browse files
authored
Merge pull request #153 from OpenSourceFellows/chore/switch-to-pnpm
Switch from NPM to PNPM & a Bit of Clean Up
2 parents 9069dc5 + 7102643 commit 82f4826

File tree

10 files changed

+2304
-3471
lines changed

10 files changed

+2304
-3471
lines changed

CONTRIBUTING.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Contributing Guide
2+
3+
Thank you for your interest in contributing to this project! 🎉
4+
Please follow these steps to submit your contributions smoothly.
5+
6+
## 🚀 Quick Start
7+
8+
### 1. Fork the Repository
9+
10+
Click the **"Fork"** button on the top right of this page to create a copy of the repository under your GitHub account.
11+
12+
### 2. Clone Your Fork Locally
13+
14+
```bash
15+
git clone https://github.com/YOUR-USERNAME/YOUR-FORK.git
16+
cd YOUR-FORK
17+
```
18+
19+
### 3. Add the Original Repo as a Remote
20+
21+
```bash
22+
git remote add upstream https://github.com/OpenSourceFellows/map-dashboard.git
23+
```
24+
25+
### 4. Create a New Branch for Your Work
26+
27+
Never work directly on main or reuse old branches.
28+
29+
```bash
30+
git checkout main
31+
git pull upstream main
32+
git checkout -b feature/your-feature-name
33+
```
34+
35+
### 5. Make Your Changes
36+
37+
Make your changes locally, and commit them:
38+
39+
```bash
40+
git add .
41+
git commit -m "Add: brief description of your change"
42+
```
43+
44+
### 6. Push the Branch to Your Fork
45+
46+
```bash
47+
git push origin feature/your-feature-name
48+
```
49+
50+
### 7. Open a Pull Request
51+
52+
- Go to your fork on GitHub
53+
- Click “Compare & Pull Request”
54+
- Make sure the base repository is the original repo
55+
- Add a clear title and description
56+
- Submit the PR 🚀
57+
58+
## 🔁 Keeping Your Fork Up-to-Date
59+
60+
Before starting new work, always sync your fork:
61+
62+
```bash
63+
git checkout main
64+
git fetch upstream
65+
git merge upstream/main
66+
git push origin main
67+
```
68+
69+
## 🔧 Guidelines
70+
71+
- [ ] One feature/bugfix per branch.
72+
- [ ] Write clear commit messages.
73+
- [ ] Test your changes before submitting.
74+
- [ ] Follow project coding conventions (if any).
75+
- [ ] Be kind in code reviews and comments.
76+
77+
Thank you for contributing! 🙌

LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright © 2025, Program Earth
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A modern, interactive map dashboard built with React and Vite. This project provides a user-friendly interface for visualizing and interacting with geospatial data layers.
44

5-
![Map Web App Preview](./public/map-preview.png)
5+
![Map Web App Preview](./public/map-dashboard-preview.png)
66

77
## Features
88

@@ -16,34 +16,34 @@ A modern, interactive map dashboard built with React and Vite. This project prov
1616
## Prerequisites
1717

1818
- Node.js (v18 or higher recommended)
19-
- npm (v9 or higher)
19+
- pnpm (v9 or higher)
2020

2121
## Installation
2222

2323
1. Clone the repository:
2424
```sh
2525
git clone https://github.com/OpenSourceFellows/map-dashboard.git
26-
cd map-dashboard/frontend
26+
cd map-dashboard
2727
```
2828
2. Install dependencies:
2929
```sh
30-
npm install
30+
pnpm install
3131
```
3232

3333
## Development
3434

3535
To start the development server:
3636

3737
```sh
38-
npm run dev
38+
pnpm run dev
3939
```
4040

4141
The app will be available at `http://localhost:5173` by default.
4242

4343
## Project Structure
4444

4545
```
46-
frontend/
46+
main/
4747
├── public/ # Static assets
4848
├── src/ # Source code
4949
│ ├── components/ # UI and map components
@@ -75,11 +75,8 @@ frontend/
7575

7676
## How to Contribute
7777

78-
1. Clone the repository
79-
2. Create a new branch (`git checkout -b feature/your-feature`)
80-
3. Commit your changes
81-
4. Push to your branch and open a pull request
78+
[CONTRIBUTING.md](CONTRIBUTING.md)
8279

8380
## License
8481

85-
This project is open source and available under the MIT License.
82+
[LICENSE.md](LICENSE.md)
File renamed without changes.
File renamed without changes.

docs/MAINTAINER.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
1. **Review in GitHub UI**:
2+
3+
- Check "Files changed" tab.
4+
- Comment on lines if needed.
5+
- Approve or request changes.
6+
7+
2. **Check out the PR locally (optional)**:
8+
If you want to test it locally:
9+
10+
```bash
11+
gh pr checkout <PR-number>
12+
```
13+
14+
3. **Merge strategy:**
15+
16+
- Use Squash and Merge to keep history clean.
17+
- Optionally delete the contributor’s branch (GitHub asks this by default).
18+
19+
---
20+
21+
### 🔁 If the Contributor Will Submit More Work
22+
23+
- Remind them to:
24+
- Create a new branch for each PR.
25+
- Keep their fork synced regularly.
26+
27+
---
28+
29+
### 🧪 Optional: Automation Tools to Consider
30+
31+
- GitHub Actions – for linting, testing, or builds.
32+
- PR Labelers – auto-label PRs.
33+
- CODEOWNERS – assign reviewers automatically.

0 commit comments

Comments
 (0)