lux icon indicating copy to clipboard operation
lux copied to clipboard

generate an intro GET / on lux new

Open kevboh opened this issue 7 years ago • 9 comments

Let me know if you think is a good idea and I'll open a PR. After lux new this is what localhost:4000 returns:

{"errors":[{"status":"404","title":"Not Found"}],"jsonapi":{"version":"1.0"}}

On Safari it just downloads a JSON blob 😢 . Maybe instead it could show a good next step, like a CLI command to generate a new controller?

kevboh avatar Aug 18 '16 12:08 kevboh

This sounds like a good idea to me, the old rails hello world page is good inspiration - maybe some links back to documentation guides as well?

javamonn avatar Aug 18 '16 13:08 javamonn

This is a great idea @kevboh!

zacharygolba avatar Aug 18 '16 14:08 zacharygolba

Okay, cool. I am Bad At HTML but can give it a simple shot and maybe ask a designer for help!

kevboh avatar Aug 18 '16 19:08 kevboh

I would love to pick this up if you can give me more info on Issue #51

gentle-noah avatar Sep 12 '16 02:09 gentle-noah

@gentle-noah I appreciate the enthusiasm!

Currently, we a working on a landing page/documentation website for Lux. I think we should hold off on this issue until we finish the landing page for the sake of normalizing the styles.

I'll keep you posted about this issue when more information is available. 😃

zacharygolba avatar Sep 13 '16 23:09 zacharygolba

@zacharygolba - right on. Let me know if you need a hand with any of that. Some recent things I have built that called for a lot of HTML and CSS would be Zooppa Marketing and Zooppa Community

gentle-noah avatar Sep 14 '16 18:09 gentle-noah

ember-welcome-page is another fine example of this. See: https://github.com/ember-cli/ember-welcome-page and more specifically: https://github.com/ember-cli/ember-welcome-page/blob/master/addon/templates/components/welcome-page.hbs

I think some similar pointers to docs/gitter etc. would be great. A simple way to disable/remove the whole thing would be great too. Maybe a middleware which inserts the HTML and modifies the response content type? That way it could be a separate package like the ember one and be disabled by removing the package + middleware call.

nickschot avatar May 14 '17 19:05 nickschot

Would that absolve the need to map an action to "GET /" ?

That's my current roadblock.

CzechsMix avatar May 15 '17 20:05 CzechsMix

No, that's still needed if we want it to be visible on '/' (which we want).

nickschot avatar May 15 '17 20:05 nickschot