Basic web-app template.
curl -sL https://raw.githubusercontent.com/afgalvan/create-app/main/installer.sh | bash -s [package-manager] [branch]
The package-manager argument it's optional, npm is configured by default.
bash
echo "alias create-app=\"~/.config/create-app/create_app.sh\"" >> ~/.bashrc
zsh
echo "alias create-app=\"~/.config/create-app/create_app.sh\"" >> ~/.zshrc
Clone the repository with git by:
git clone -b web https://github.com/afgalvan/create-app/.git <new-project-name>
or
gh repo clone afgalvan/create-app <new-project-name> -- -b web
Go your project directory:
cd <new-project-name>
Delete the git folder:
rm -rf .git/
Initialize a new git project:
-
In git ^2.28.0:
git init -b main
-
In older versions:
git init
git checkout -b main