DEV Community

MD Mostafa Niloy
MD Mostafa Niloy

Posted on

How to deploy a website on Netlify

Have you just built your first website and want to make it live on the internet?

Good news β€” you can deploy it for free using Netlify!

In this guide, we’ll go through the step-by-step process of deploying a static website (HTML, CSS, JS) on Netlify β€” no complicated server setup required.


🧰 What You’ll Need

Before we start, make sure you have:

  • βœ… A Netlify account β€” Sign up here
  • βœ… Your website folder (containing index.html)
  • βœ… A GitHub account (optional but recommended)

πŸš€ Option 1: Deploy via Drag and Drop

If your site is ready locally, this is the easiest way:

  1. Go to https://app.netlify.com/drop
  2. Drag your project folder (with index.html) into the box
  3. Wait a few seconds β€” and boom! πŸŽ‰ Your site is live with a free Netlify domain (like your-site-name.netlify.app)

You can even customize the domain later under Site Settings β†’ Domain Management.


πŸ§‘β€πŸ’» Option 2: Deploy via GitHub

This is a better approach if you plan to update your site often.

  1. Push your website code to a GitHub repository
  2. Go to Netlify Dashboard β†’ Add New Site β†’ Import from Git
  3. Connect your GitHub account
  4. Choose the repository you want to deploy
  5. Click Deploy Site

Netlify will automatically build and host your website β€” and every time you push new changes to GitHub, Netlify redeploys it automatically. πŸ”


βš™οΈ Bonus: Custom Domain Setup

Want to use your own domain like www.mywebsite.com?

  1. Go to Site Settings β†’ Domain Management
  2. Click Add custom domain
  3. Enter your domain name and follow the verification steps

Netlify also provides free SSL certificates via Let’s Encrypt. πŸ”’


🎯 Conclusion

That’s it! πŸŽ‰ You just learned how to deploy your website on Netlify in a few minutes β€” completely free, with auto updates and HTTPS.

πŸ’‘ Pro tip: Netlify also supports React, Vue, and Next.js apps with zero configuration.

If you found this guide helpful, give it a ❀️ and drop a comment below!

You can also follow me for more quick web development tutorials.


Happy Deploying! πŸš€

Top comments (0)