sailstech / multiple-apps-parse-server

run and manage multiple parse apps (instances) in a server and using a single port
MIT License
55 stars 12 forks source link

Multiple apps - client key #1

Closed rjpalermo1 closed 6 years ago

rjpalermo1 commented 6 years ago

This is awesome - very inventive and tight code. Thank you for sharing it.

I'm more of an implementer, not a coder or I would pull and give this shot - is it possible for you to extend this another step by allowing multiple apps per client key so if we want to use this as a developer dashboard type (like the hosted Parse app) we have a good kickstart?

Here is how I'd see it work FWIW:

An option on newInstance.js to enter clientKey like customer=firstapp node newInstance.js --clientKey HPStTfFbgFnSXwfCYZsA or customer=firstapp clientKey=HPStTfFbgFnSXwfCYZsA node newInstance.js..?

I suppose if you went this route you would have to use a client key in every app unless you make it an option like multipleAppsPerClient: true or similar in the `config.json which will insert a unique client key each newInstance.js unless the client key is provided on init in an option similar to above.

For the dashboard:

Admin User = sees all apps Client User = sees all apps that share the same client key (or just a single app if no client key specified)

Anyway, thought. If possible would be a great contrib to an already great contribution

richjing commented 6 years ago

Hi @rjpalermo1 , thank you for your suggestion, we will add this function in near future.

richjing commented 6 years ago

@rjpalermo1 please see the latest commit where one customer(client) now is able to manage multiple apps.

rjpalermo1 commented 6 years ago

Fantastic work! Downloaded, tested and creates multiple apps per client(customer) as advertised! Thank you, this is a big deal for the community IMO. You should do a pull and add the link to this stack https://github.com/parse-community/parse-server/wiki

I am going to make one more suggestion as an 'implementer' in another issue for localhost deployment

richjing commented 6 years ago

Hi @rjpalermo1 , Thank you. We will continuously contribute into this project and make it more useful. It would be great if you help us to promote this project to related community.