Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect with MongoDB Database URI? #78

Open
SeloSlav opened this issue Feb 2, 2017 · 3 comments
Open

Connect with MongoDB Database URI? #78

SeloSlav opened this issue Feb 2, 2017 · 3 comments

Comments

@SeloSlav
Copy link

SeloSlav commented Feb 2, 2017

Parse.initialize(APP_ID, APP_REST_API_ID, CUSTOM_SERVER_PATH);

Does your method actually handle a CUSTOM_SERVER_PATH or was this a suggestion for developers to implement for after the Parse shutdown (which has already happened)?

For example, I'm using Back4App now. Can I just pass my MongoDB Database URI into this third parameter? Or should I use https://parseapi.back4app.com/? This is the path to the server I believe.

Update: This is actually supported in the latest snapshot build. See the solution here: http://stackoverflow.com/questions/43110992/how-can-i-connect-to-a-hosted-parse-server-over-parse4j/43112054#43112054

@ugochirico
Copy link

I'm trying to use the api with back4app.
Because the function
Parse.initialize(APP_ID, APP_REST_API_ID, CUSTOM_SERVER_PATH);
is not implemented yet I changed the source code by changing https://parseapi.back4app.com instead of the parse.com url.
But it doesn't work. When I try to create an instance of an object I always got HTTP 404 Not Found from the back4app server.
Was you able to use it with back4app?

@ugochirico
Copy link

I used the latest revision in the master branch and it works!

@SeloSlav
Copy link
Author

SeloSlav commented Mar 30, 2017

This should be documented. Perhaps a new release build! The snapshot build probably isn't so intuitive a choice for developers that are using Parse. Anyway, I got it working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants