How to Publish Your Front-End Over Surge Cloud Platform ? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Requirement: NPM must be installed As a front end developer, we create lots of cool designs and we want to showcase them to others. But as students, we may not want to buy domains in order to get the site live on web. There are some free tools available like github and Heroku but the setup is a little complicated when it comes to publishing the front-end only. There is one more tool called surge available that is developed specially for front-end developers and it is quite easy to use. Follow the steps below to get your pages published under 2 minutes. To start, lets begin with making a dummy web page, a single HTML file. Index.html HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> .navbar { text-align: center; background-color: rgb(0, 90, 121); color: white; } body { background-color: lightblue; } </style> </head> <body> <div class="navbar"> This is the navbar </div> <div class="body"> This is the body of my website <br> Content goes here. </div> </body> </html> You must have npm installed in your system for this step. Open the terminal in the same directory where index.html is located. Run the following command:npm install -g surgeNow you have 'surge' globally installed in your system so that you will be able to use it as many times as you want in future. Execute the following command:surgeIt will now ask for your email ID and a password. Here you need to enter your email id and a new password for your surge account.After that you need to give location to your static files. If you opened the terminal in the same folder as instructed, hit enter.Now it will ask you for a domain name with an example domain name. Go ahead and edit the part before '.surge.sh' and if that domain is available, it will be assigned to you.Now hit enter and you will get the link to your site published over web. As we saw that the process is quite easy and takes less than two minutes using some simple commands. We can use it to design web pages, making resume for interviews and many other tasks free of cost. Comment More infoAdvertise with us Next Article How to Create Cloudfront Distribution in AWS for S3 Bucket ? M mukulbindal170299 Follow Improve Article Tags : CSS CSS-Misc HTML-Misc Similar Reads How to Deploy website on Netlify You have your website ready and don't know how to reach the audience. Most of us coders create amazing websites using HTML, CSS, and JavaScript and just save them locally or on remote host services like GitHub and BitBucket. Now, what if you need non-programmers to view your work? This is why it bec 2 min read How to Create Cloudfront Distribution in AWS for S3 Bucket ? CloudFront is a content delivery network (CDN) service provided by AWS that delivers data, videos, applications, and APIs to viewers with low latency and high transfer speeds. In this article, we will explore how to create a CloudFront distribution in AWS to serve content stored in an S3 bucket. Key 6 min read AWS CloudFront - Setup and Configuration If you want to speed up your website, reduce load times, and improve security, AWS CloudFront is your best bet. CloudFront is a Content Delivery Network (CDN) that distributes your websiteâs content through AWS edge locations worldwide, ensuring users get faster access with low latency.In this guide 7 min read How to deploy React app to Surge ? React stands out as a widely embraced library for crafting User Interfaces. When it comes to deploying your static React app effortlessly, the surge package comes in handy, enabling you to publish web apps to a CDN seamlessly with just one command. Prerequisites:Installation of Node.js on WindowsIns 3 min read Deploy a Website Using AWS Amplify Pre-requisite: AWS Amplify Amplify is a suite of tools and frameworks developed by Amazon Web Services (AWS) that are used for managing hosting services for web apps as well as for launching software applications on AWS. On AWS, two well-known services include Amplify Studio and Hosting. Amplify Stu 2 min read AWS CloudFront Using Terraform CloudFront is a generally used service provided by AWS. CloudFront utilizes edge areas to load extra website data. Suppose you launch your website using EC2. So regularly you would store all the website code as well as website data(i.e images, recordings, and so on.) in a similar EC2 machine. Be tha 6 min read Like