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

Create a CloudOS.init() function #2

Open
JessieAMorris opened this issue May 20, 2013 · 1 comment
Open

Create a CloudOS.init() function #2

JessieAMorris opened this issue May 20, 2013 · 1 comment

Comments

@JessieAMorris
Copy link
Member

We don't want people to have to store their credentials in the CloudOS.js file. That makes upgrades a pain.

Instead, my plan is to introduce a CloudOS.init() function that you pass a hash similar to:

{
   "host": "cs.kobj.net",
   "appKey": "YOURAPPKEYHERE"
}

This will extend a configuration default hash in CloudOS.js.

This allows them to edit the CloudOS.js if they really want, but to also encourage them to pass in the variables some other way.

@windley
Copy link
Member

windley commented May 20, 2013

Look at how I did the Todo app

https://github.com/windley/CloudOS-Todo-Demo

On May 20, 2013, at 3:16 PM, "Jessie A. Morris" notifications@github.com wrote:

We don't want people to have to store their credentials in the CloudOS.js file. That makes upgrades a pain.

Instead, my plan is to introduce a CloudOS.init() function that you pass a hash similar to:

{
"host": "cs.kobj.net",
"appKey": "YOURAPPKEYHERE"
}
This will extend a configuration default hash in CloudOS.js.

This allows them to edit the CloudOS.js if they really want, but to also encourage them to pass in the variables some other way.


Reply to this email directly or view it on GitHub.

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