Last updated on Aug 21, 2020 by Suraj Sharma
This website and many other websites of mine for instance, Longurl.in are hosted for free without me providing my credit card details to the web hosting provider.
Most of the web hosting sites provide SSL certificates for free to make your website secure for the users. They have the option to add your custom domain to the website.
Github pages is the most popular static website hosting platform among the developers to host portfolio website and open source documentations.
To host a website on Github Pages, you must have a github account because to host websites on github pages you will need a github repository where you can push your source code and github will automatically deploy it to the github pages. They allow you to add your own custom domain name to the website for free.
Github Pages makes your website secure by enforcing HTTPS for your website without costing you a penny. To enforce HTTPS to your website you have to check the 'Enforce HTTPS' checkbox under your github repository settings
These are few steps to deploy a static website on github pages
Firebase hosting is a google cloud platform where developers deploy their mobile apps and web apps and it serves your content over a global cloud delivery network. It allows developers to host their both static and dynamic websites, APIs and microservices for free.
They have paid plans if you have plans to scale your websites but if your website has lower traffic then you don’t have to pay anything. It won’t ask to add your credit card information unlike AWS.
Firebase provides a SSL certificate to your website signed byLet’s Encrypt, a non-profit certificate authority.
Connecting a custom domain to your firebase project is quite simple and is free of cost.
If you’re a React and Next.js developer then your first option for website hosting should be Vercel. Just connect your git repository and you are good to go, every time you push your code to the master it will deploy it and your website is up to date in a minute or so.
Vercel allows you to deploy static and dynamic websites along with serverless functions support. It also has CLI support that easily creates a build and deploys it to the server and your website is up and running in a couple of minutes.
Vercel also allows you to connect your custom domain for free. It by default provides SSL certificates.
Just connect with your git repository or use Netlify CLI on your terminal for continuous deployment and hosting. It provisions a SSL certificate to your domains and allows you to add a custom domain name to your website for free of cost.
Use their CLIs to easily preview, build and deploy your projects or connect your git repository for continuous deployment all are free.
Rate this post
Suraj Sharma is a Full Stack Software Engineer. He holds a B.Tech degree in Computer Science & Engineering from NIT Rourkela.