git clone https://github.com/abhilashkulkarniofficial/vue-boilerplate.git
cd vue-boilerplate
Download VSCode and install using the following guide by VSCode
Launch the project using command line
code .
Open terminal in VSCode and run the rest of the commands.
npm install
npm run serve
Follow this guide by Github to create a repository.
You can choose any name of the repo. Just make sure to follow the next steps too.
Open vue.config.js and change the public path to the name of the repository in Github.
Open package.json and change the name and update package-lock.json
npm i --package-lock-only
Add the remote github repo to your project
git remote add origin [repo-url]
Check the status of the remote origin
git remote -v
Commit the changes in VSCode using the following guide by VSCode or using the following command.
git commit -m "Commit message"
Push the code to remote origin
git push -u origin main
Run the deployment script.
npm run gh-pages-deploy
In your repository go to Settings -> Pages -> Change source to gh-pages branch and click save. Wait for 2 - 10 minutes for the deployment.
You will get a link to the page. Viola!!!
The credit for this easy method to deploy your project on github pages goes to Roland Doda's article Deploy to Github Pages like a pro with Github Actions