Pick a platform to host your website:
- GitHub Pages: For static websites.
- Netlify: Easy, free for basic sites.
- Vercel: Best for React/Next.js apps.
- Heroku: For dynamic websites with backend.
- Ensure all your website files (HTML, CSS, JS) are in a folder.
- For dynamic websites, push your project to GitHub or any version control system.
- Push your code to a GitHub repository.
- Enable GitHub Pages:
- Go to Settings > Pages.
- Select branch (usually "main").
- Site live at:
https://<username>.github.io/<repo-name>
.
- Sign up on Netlify.
- Drag & Drop site folder or connect GitHub repo.
- Custom Domain (optional): Use free Netlify domain or connect your own.
- Sign up on Vercel.
- Import project from GitHub/GitLab.
- Automatic Deployment on every repository push.
- Sign up on Heroku.
- Install Heroku CLI.
- Push project to Heroku:
- Run
heroku create
. - Push code with
git push heroku main
. - Site live at:
https://<app-name>.herokuapp.com
.
- Run
Once deployed, grab the link and share!