Skip to content

Install Script

Alberto edited this page Nov 17, 2023 · 13 revisions

You can easily clone this project using git or you can use one of the install scripts for Bash and Powershell.

Remember to change the <folderName> at the end of the one liner with your desired folder name to clone the project into.

After the script is finished you can insert your Environment Variables in the .env.local file and run bun dev to start the server.

Unix

curl -sL https://tinyurl.com/kit-stack | bash -e -s "<folderName>"

or with the complete url, not shortened:

curl -sL https://raw.githubusercontent.com/albbus-stack/kit-stack/main/install.sh | bash -e -s "<folderName>"

Windows (discontinued)

If you have Windows just use WSL, install Bun on there and refer to the script above.

Discontinued since Bun is only available on Unix systems. This was the old script:

iwr https://raw.githubusercontent.com/albbus-stack/kit-stack/main/install.ps1 -useb | iex -ArgumentList "folderName=my-kit-stack"

For clarity

These two scripts do the following:

  • Clone the repo
  • Cleanup unused files
  • Create a local env
  • Install the dependencies & sync env
  • Create a new empty repo

The code

git clone https://github.com/albbus-stack/kit-stack.git $folderName
cd $folderName

rm -rf .git LICENSE install.sh install.ps1
mv .env.local.example .env.local

bun install
bun db:generate
bun lang:build
bun env:sync

git init

Screenshot

carbon(1)

Clone this wiki locally