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 first open a [new issue](https://github.com/parse-community/parse-server/issues/new/choose) related to your contribution, 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
+
Together we 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.
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
+
Please completely fill out any templates to provide essential information about your new feature or the bug you discovered.
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
+
More information about opening a pull request can be found 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: Your code is examined for efficiency and interoperability with existing features by the community.
43
+
- 🛡 Stronger security: Your code is scrutinized for bugs and vulnerabilities and automated checks help to identify security issues that may arise in the future.
44
+
- 🧬 Continuous improvement: If your feature is used by others it is likely to be continuously improved and extended by the community.
45
+
- 💝 Giving back: You give back to the community that contributed to make the Parse Platform become what it is today and for future developers to come.
46
+
- 🧑🎓 Improving yourself: 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.
47
+
48
+
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?
49
+
50
+
If this is your first contribution, or you are already a seasoned contributor, the Parse Community has your back when you write it!
51
+
52
+
## Environment Setup
53
+
54
+
### Recommended Tools
22
55
23
56
*[vscode](https://code.visualstudio.com), the popular IDE.
24
57
*[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
58
26
-
### Setting up you local machine:
59
+
### Setting up your local machine
27
60
28
61
*[Fork](https://github.com/parse-community/parse-server) this project and clone the fork on your local machine:
29
62
@@ -39,13 +72,13 @@ $ npm run watch # run babel watching for local file changes
39
72
40
73
Once you have babel running in watch mode, you can start making changes to parse-server.
41
74
42
-
### Good to know:
75
+
### Good to Know
43
76
44
-
* The `lib/` folder is not commited, so never make changes in there.
77
+
* The `lib/` folder is not committed, so never make changes in there.
45
78
* Always make changes to files in the `src/` folder.
46
79
* All the tests should point to sources in the `lib/` folder.
47
80
48
-
### Troubleshooting:
81
+
### Troubleshooting
49
82
50
83
*Question*: I modify the code in the src folder but it doesn't seem to have any effect.<br/>
51
84
*Answer*: Check that `npm run watch` is running
@@ -67,7 +100,7 @@ Once you have babel running in watch mode, you can start making changes to parse
67
100
***Do not** publish the *lib* folder.
68
101
* 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
102
70
-
### Run your tests against Postgres (optional)
103
+
### Test against Postgres
71
104
72
105
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
106
@@ -89,7 +122,7 @@ If your pull request introduces a change that may affect the storage or retrieva
89
122
-`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
123
-`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
124
92
-
#### Run Postgres setup for Parse with Docker
125
+
#### Postgres with Docker
93
126
94
127
[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