stacksjs / stacks

Type-safe full-stack framework for Artisans. Develop modern apps, clouds & framework-agnostic libraries—faster.
https://stacksjs.org
MIT License
525 stars 9 forks source link

Onboarding #850

Open chrisbbreuer opened 9 months ago

chrisbbreuer commented 9 months ago

Clear and concise description of the problem

A cross-platform, zero-setup onboarding experience via

curl -Ssf stacksjs.org | sh

Suggested solution

Nice-to-haves

Validations

dorelljames commented 7 months ago

curl -Ssf stacksjs.org | sh

The script is designed to work with or without an argument. The former where it expects an argument is used to bootstrap the project and install all dependencies.

The latter is assumed to have all the required dependencies ready.

We can't get to the latter until we have bootstrapped a project. The above command is for the 2nd case.

So it's either we change the initial script to pass the project name argument, eg:

curl -Ssf https://stacksjs.org/bootstrap | sh -s -- myProjectName

or we adjust the script accordingly like we can assume a default directory name for initial project bootstrap.


@chrisbbreuer your inputs appreciated. thanks

chrisbbreuer commented 7 months ago

I will look into here a little more thoroughly toward end of day today, but I'd say we adjust the script accordingly so that it properly works without any inputs as well.

For example, if we don't pass a project name, we can prompt for it, or default to stacks. Something along those lines, I am thinking.

One thing I know we want to test and optimize for as well is the ./buddy setup script. I was thinking that it makes sense to run this at last within this automation.

For example,

and please check the remainder of what's inside the setup command

dorelljames commented 7 months ago

Thanks. I look forward to your response.