A simple shell script to quickly create and deploy a Nuxt.js application to Github and Vercel.
jq
andcurl
must be installed on your machine. If they are not installed, the script will attempt to install them automatically.- A Github personal access token must be obtained and passed to the script as an argument or set as an environment variable GITHUB_PAT.
- In order to use the script, you will need to clone the repository to your local machine. You can do this by running the following command in your terminal or Git Bash:
git clone https://github.com/vinosamari/quick-nuxt.git
- After cloning the repository, navigate to the script directory using the following command:
cd quick-nuxt
- Now, you need to make the script executable. You can do this by running the following command:
chmod +x quick-nuxt.sh
At least 2 arguments are required:
APP_NAME
: the name of your Nuxt.js application.GITHUB_USERNAME
: your Github username.
#If $GITHUB_PAT not set in environment variables
./quick-nuxt.sh APP_NAME GITHUB_USERNAME GITHUB_PAT
export GITHUB_PAT=abcdefghijklmnopqrstuvwxyz1234567890
./quick-nuxt.sh my-new-repo vinosamari
- Allow for different app and repo names
- Allow repo to be private