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

Curl command builder #66

Closed
philwebb opened this issue Jan 12, 2015 · 8 comments
Closed

Curl command builder #66

philwebb opened this issue Jan 12, 2015 · 8 comments

Comments

@philwebb
Copy link
Contributor

Since you can now do things like this:

$ curl start.spring.io/starter.tgz -d style=web -d style=security -d name=ui | tar -xzvf -

It might be nice if the UI dynamically build that command as you check options on the screen.

@philwebb
Copy link
Contributor Author

Possibly also a spring init version as well?

@snicoll
Copy link
Contributor

snicoll commented Jan 12, 2015

I am confused as what the user would do with the result. As we discussed, it's advertized in a recent article on our blog but that's honestly the first time I hear about the use case. It does not mean it's bad as that's what the UI and spring init do behind the scenes but I wouldn't be loud about advertizing it.

The main reason is that the dependencies Ids are magic strings and the curl option provides no assistance whatsoever (obviously). Spring init has spring init --list that shows the supported dependencies with an id and a description for each. The web UI obviously assist the user (we could even add the description as an hover element or something).

So we could generate that string and you can copy it. And then you could learn from it. Honestly, I see no reason for not using spring init and I would generate that spring init command instead of a raw curl command.

@dsyer thoughts?

@philwebb
Copy link
Contributor Author

Reading http://spring.io/blog/2015/01/12/spring-and-angular-js-a-secure-single-page-application there is a section about "using curl". It struck me that unlike the spring init command there isn't any help for what you can do with curl. Adding to the UI would be a place to advertise the feature and help users guess the magic options.

@philwebb
Copy link
Contributor Author

One benefit of using curl is that most users already have it. For blogs it's quite a nice way to offer a quick way to get started.

@dsyer
Copy link
Contributor

dsyer commented Jan 12, 2015

More people have curl than a spring CLI. So I don't want to discourage anyone from using it (or either). A command builder on the web site would be useful IMO (for both).

@snicoll snicoll changed the title Provide curl option Curl command builder Jan 12, 2015
@cemo
Copy link

cemo commented Jan 13, 2015

As a feedback, I have just read blog before here and coincidentally I have created a gist for the part including curl statements.

I found that curl is pretty useful. It does not require you install something else. In a few seconds you are getting ready.

@snicoll
Copy link
Contributor

snicoll commented Jan 13, 2015

Thanks for the feedback. Check also #67

@snicoll
Copy link
Contributor

snicoll commented Mar 23, 2018

curl start.spring.io provides a textual help with samples and you can create your project right from the IDE.

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

No branches or pull requests

4 participants