Angular App Deploy on Vercel using GitHub
What is Vercel?
- Vercel is an application hosting platform
- You can host web applications and websites on Vercel
- It supports multiple technologies:
- Angular
- React
- Vue
- Laravel
- Any other web technology
- In simple words, Vercel works like hosting (similar to GoDaddy) but is more advanced and developer-friendly
Prerequisites Before Deployment
Before deploying on Vercel, you must:
- Create an Angular application
- Push the complete code to GitHub
Both steps must already be completed.
Verify Code on GitHub
- Open GitHub
- Go to Repositories
- Select the repository where Angular code is pushed
- Example:
Angular 21 - The application code should already be present and working
How the Deployed App Should Look
- After deployment, the application should look exactly like the local version
- Dummy or static content is fine
- No dynamic functionality is required for deployment testing
Login or Signup on Vercel
- Open vercel.com in the browser
- Login or Sign up
- You can use Login with Google
- The signup/login process is very easy
- No complexity in setup or deployment
Vercel Dashboard
- After login, you will see the dashboard
- Already deployed projects (if any) will be visible
- We will deploy a new project
Create a New Project on Vercel
- Click on Project
- Choose where you want to import the code from:
- GitHub
- GitLab
- Bitbucket
- Select GitHub
- Connect Vercel with your GitHub account
- If already logged in, it will connect automatically
Import GitHub Repository
- All GitHub repositories will be listed
- Select the Angular repository (example:
Angular 21) - Click Import
Vercel Auto Configuration
After importing:
- Vercel automatically detects Angular framework
- Branch name is auto-selected
- Project name is auto-generated
- Build command is automatically set:
ng build- or
npm run build - These commands run automatically during deployment
Deploy the Application
- Click on Deploy
- Deployment time depends on project size
- Small projects usually take less than 1 minute
- Heavy projects may take slightly longer
Deployment Completion
- After deployment:
- Dashboard is ready
- A free live URL is generated
- Open the URL to view the deployed Angular application
- The deployed output will match the local application
Automatic Redeployment (Redeploy)
If You Change Code:
- Make changes in the Angular project
- Commit the changes:
git add .
git commit -m "test vercel"
git push
- As soon as code is pushed to GitHub:
- Vercel automatically starts redeploying
- No manual action required
Verify Redeployment
- Refresh the Vercel dashboard
- You will see:
- Build status
- Commit message
- Deployment progress
- Once build is complete, visit the URL again
- Updated code will be visible liv