strider icon indicating copy to clipboard operation
strider copied to clipboard

allow creation of first user from UI?

Open jaredly opened this issue 12 years ago • 12 comments

To make things even easier, perhaps we could show a "create admin user" screen -- if there are zero users in the database (which would only be the very first time it's run).

jaredly avatar Jul 26 '13 17:07 jaredly

Yes, this comes back to something I've wanted to do for a while which is a proper onboarding flow - setting up the first user, database url, and adding the first repo.

peterbraden avatar Jul 26 '13 17:07 peterbraden

Hmmm database url? So setting an ENV variable? or writing to a config file?

On Fri, Jul 26, 2013 at 11:32 AM, Peter Braden [email protected]:

Yes, this comes back to something I've wanted to do for a while which is a proper onboarding flow - setting up the first user, database url, and adding the first repo.

— Reply to this email directly or view it on GitHubhttps://github.com/Strider-CD/strider/issues/149#issuecomment-21635919 .

jaredly avatar Jul 26 '13 17:07 jaredly

I envisage something like the web-based wizard you get on a vanilla WordPress install.

We'd have a flow for:

  • Adding admin user
  • Setting up database (perhaps even provisioning, on a platform like Heroku)
  • Configuring OAuth for Github
  • Etc

I actually had an app which would do this, but it was for an older version of Strider (back when we had a config file). All you had to do was enter your Heroku API key and it could fully install & configure a Strider instance for you:

https://github.com/niallo/deadlift

niallo avatar Jul 26 '13 19:07 niallo

Right; wordpress uses a file to store config.

And I think that would be totally appropriate for us too; there will be a number of configuration options, and I'd rather have them in a file than having tons of ENV vbls.

I think STRIDER_CONFIG_FILE could be in env, defaulting to something reasonable.

On Fri, Jul 26, 2013 at 1:10 PM, niallo [email protected] wrote:

I envisage something like the web-based wizard you get on a vanilla WordPress install.

We'd have a flow for:

  • Adding admin user
  • Setting up database (perhaps even provisioning, on a platform like Heroku)
  • Configuring OAuth for Github
  • Etc

I actually had an app which would do this, but it was for an older version of Strider (back when we had a config file). All you had to do was enter your Heroku API key and it could fully install & configure a Strider instance for you:

https://github.com/niallo/deadlift

— Reply to this email directly or view it on GitHubhttps://github.com/Strider-CD/strider/issues/149#issuecomment-21641873 .

jaredly avatar Jul 26 '13 19:07 jaredly

Yeah, we should have an environment variable and a -c [config file] flag on the CLI interface would be nice too.

niallo avatar Jul 26 '13 23:07 niallo

Sounds great. So what format do we like best? javascript? or json/yaml?

On Fri, Jul 26, 2013 at 5:08 PM, niallo [email protected] wrote:

Yeah, we should have an environment variable and a -c [config file] flag on the CLI interface would be nice too.

— Reply to this email directly or view it on GitHubhttps://github.com/Strider-CD/strider/issues/149#issuecomment-21653573 .

jaredly avatar Jul 27 '13 03:07 jaredly

Problem with json is it doesn't allow comments unfortunately. Not the biggest fan of yaml but it might be the right choice here.

Sent from my iPhone

On Jul 26, 2013, at 8:35 PM, Jared Forsyth [email protected] wrote:

Sounds great. So what format do we like best? javascript? or json/yaml?

On Fri, Jul 26, 2013 at 5:08 PM, niallo [email protected] wrote:

Yeah, we should have an environment variable and a -c [config file] flag on the CLI interface would be nice too.

— Reply to this email directly or view it on GitHubhttps://github.com/Strider-CD/strider/issues/149#issuecomment-21653573 .

— Reply to this email directly or view it on GitHub.

niallo avatar Jul 27 '13 03:07 niallo

Json for sure

Sent from my iPhone

On Jul 26, 2013, at 8:35 PM, Jared Forsyth [email protected] wrote:

Sounds great. So what format do we like best? javascript? or json/yaml?

On Fri, Jul 26, 2013 at 5:08 PM, niallo [email protected] wrote:

Yeah, we should have an environment variable and a -c [config file] flag on the CLI interface would be nice too.

— Reply to this email directly or view it on GitHubhttps://github.com/Strider-CD/strider/issues/149#issuecomment-21653573 .

— Reply to this email directly or view it on GitHub.

peterbraden avatar Jul 27 '13 03:07 peterbraden

What about using something like json-minify? https://github.com/getify/JSON.minify That would give us comments.

On Fri, Jul 26, 2013 at 9:39 PM, Peter Braden [email protected]:

Json for sure

Sent from my iPhone

On Jul 26, 2013, at 8:35 PM, Jared Forsyth [email protected] wrote:

Sounds great. So what format do we like best? javascript? or json/yaml?

On Fri, Jul 26, 2013 at 5:08 PM, niallo [email protected] wrote:

Yeah, we should have an environment variable and a -c [config file] flag on the CLI interface would be nice too.

— Reply to this email directly or view it on GitHub< https://github.com/Strider-CD/strider/issues/149#issuecomment-21653573> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/Strider-CD/strider/issues/149#issuecomment-21658776 .

jaredly avatar Jul 27 '13 03:07 jaredly

+1

Sent from my iPhone

On Jul 26, 2013, at 8:49 PM, Jared Forsyth [email protected] wrote:

What about using something like json-minify? https://github.com/getify/JSON.minify That would give us comments.

On Fri, Jul 26, 2013 at 9:39 PM, Peter Braden [email protected]:

Json for sure

Sent from my iPhone

On Jul 26, 2013, at 8:35 PM, Jared Forsyth [email protected] wrote:

Sounds great. So what format do we like best? javascript? or json/yaml?

On Fri, Jul 26, 2013 at 5:08 PM, niallo [email protected] wrote:

Yeah, we should have an environment variable and a -c [config file] flag on the CLI interface would be nice too.

— Reply to this email directly or view it on GitHub< https://github.com/Strider-CD/strider/issues/149#issuecomment-21653573> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/Strider-CD/strider/issues/149#issuecomment-21658776 .

— Reply to this email directly or view it on GitHub.

niallo avatar Jul 27 '13 04:07 niallo

+2

peterbraden avatar Aug 02 '13 22:08 peterbraden

node-config with json5

knownasilya avatar Nov 12 '14 15:11 knownasilya