You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Parse Server Configuration](#parse-server-configuration)
18
+
-[Code of Conduct](#code-of-conduct)
4
19
5
-
Before you jump into the coding element of contributing, please make sure you first [open an issue](https://github.com/parse-community/parse-server/issues/new/choose) relating to your contribution, or continue the discussion in the existing issue.
20
+
## Contributing
6
21
7
-
This helps us all plan out the best conceptual approach for the contribution, so that your time isn't wasted on approaches or features that could be tackled in a different way. Our team are also happy to give you pointers and suggestions to speed up the process.
22
+
Before you start to code, please open a [new issue](https://github.com/parse-community/parse-server/issues/new/choose) to describe your idea, or search for and continue the discussion in an [existing issue](https://github.com/parse-community/parse-server/issues).
8
23
9
-
When opening an issue, please make sure you follow the templates and provide as much detail as possible.
24
+
> ⚠️ Please do not post a security vulnerability on GitHub or in the Parse Community Forum. Instead, follow the [Parse Community Security Policy](https://github.com/parse-community/parse-server/security/policy).
10
25
11
-
After you've completed the contribution, you'll need to submit a Pull Request (PR).
26
+
Please completely fill out any templates to provide essential information about your new feature or the bug you discovered.
12
27
13
-
If you are not familiar with Pull Requests and want to know more about them, you can visit the [Creating a pull request](https://help.github.com/articles/creating-a-pull-request/) article. It contains detailed informations about the process.
28
+
Together we will plan out the best conceptual approach for your contribution, so that your and our time is invested in the best possible approach. The discussion often reveals how to leverage existing features of Parse Server to reach your goal with even less effort and in a more sustainable way.
14
29
15
-
If you need any help along the way, you can open a Draft PR where we can help finalize your contribution.
30
+
When you are ready to code, you can find more information about opening a pull request in the [GitHub docs](https://help.github.com/articles/creating-a-pull-request/).
16
31
17
-
Contributing can be challenging, so don't be discouraged if you're having difficulties. Please don't hesitate to ask for help.
32
+
Whether this is your first contribution or you are already an experienced contributor, the Parse Community has your back – don't hesitate to ask for help!
18
33
19
-
## Setting up the project for debugging and contributing:
34
+
## Why Contributing?
20
35
21
-
### Recommended setup:
36
+
Buy cheap, buy twice. What? No, this is not the Economics 101 class, but the same is true for contributing.
37
+
38
+
There are two ways of writing a feature or fixing a bug. Sometimes the quick solution is to just write a Cloud Code function that does what you want. Contributing by making the change directly in Parse Server may take a bit longer, but it actually saves you much more time in the long run.
39
+
40
+
Consider the benefits you get:
41
+
42
+
-#### 🚀 Higher efficiency
43
+
Your code is examined for efficiency and interoperability with existing features by the community.
44
+
-#### 🛡 Stronger security
45
+
Your code is scrutinized for bugs and vulnerabilities and automated checks help to identify security issues that may arise in the future.
46
+
-#### 🧬 Continuous improvement
47
+
If your feature is used by others it is likely to be continuously improved and extended by the community.
48
+
-#### 💝 Giving back
49
+
You give back to the community that contributed to make the Parse Platform become what it is today and for future developers to come.
50
+
-#### 🧑🎓 Improving yourself
51
+
You learn to better understand the inner workings of Parse Server, which will help you to write more efficient and resilient code for your own application.
52
+
53
+
Most importantly, with every contribution you improve your skills so that future contributions take even less time and you get all the benefits above for free — easy choice, right?
54
+
55
+
## Environment Setup
56
+
57
+
### Recommended Tools
22
58
23
59
*[vscode](https://code.visualstudio.com), the popular IDE.
24
60
*[Jasmine Test Explorer](https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-jasmine-test-adapter), a very practical test exploration plugin which let you run, debug and see the test results inline.
25
61
26
-
### Setting up you local machine:
62
+
### Setting up your local machine
27
63
28
64
*[Fork](https://github.com/parse-community/parse-server) this project and clone the fork on your local machine:
29
65
@@ -39,13 +75,13 @@ $ npm run watch # run babel watching for local file changes
39
75
40
76
Once you have babel running in watch mode, you can start making changes to parse-server.
41
77
42
-
### Good to know:
78
+
### Good to Know
43
79
44
-
* The `lib/` folder is not commited, so never make changes in there.
80
+
* The `lib/` folder is not committed, so never make changes in there.
45
81
* Always make changes to files in the `src/` folder.
46
82
* All the tests should point to sources in the `lib/` folder.
47
83
48
-
### Troubleshooting:
84
+
### Troubleshooting
49
85
50
86
*Question*: I modify the code in the src folder but it doesn't seem to have any effect.<br/>
51
87
*Answer*: Check that `npm run watch` is running
@@ -67,7 +103,7 @@ Once you have babel running in watch mode, you can start making changes to parse
67
103
***Do not** publish the *lib* folder.
68
104
* Please consider if any changes to the [docs](http://docs.parseplatform.org) are needed or add additional sections in the case of an enhancement or feature.
69
105
70
-
### Run your tests against Postgres (optional)
106
+
### Test against Postgres
71
107
72
108
If your pull request introduces a change that may affect the storage or retrieval of objects, you may want to make sure it plays nice with Postgres.
73
109
@@ -89,7 +125,7 @@ If your pull request introduces a change that may affect the storage or retrieva
89
125
-`it_only_mongodb_version('>=4.4')` // will test with any version of Postgres but only with version >=4.4 of MongoDB; accepts semver notation to specify a version range
90
126
-`it_exclude_mongodb_version('<4.4')` // will test with any version of Postgres and MongoDB, excluding version <4.4 of MongoDB; accepts semver notation to specify a version range
91
127
92
-
#### Run Postgres setup for Parse with Docker
128
+
#### Postgres with Docker
93
129
94
130
[PostGIS images (select one with v2.2 or higher) on docker dashboard](https://hub.docker.com/r/postgis/postgis) is based off of the official [postgres](https://registry.hub.docker.com/_/postgres/) image and will work out-of-the-box (as long as you create a user with the necessary extensions for each of your Parse databases; see below). To launch the compatible Postgres instance, copy and paste the following line into your shell:
0 commit comments