ALL POSTS
 ⚬ 

3 MIN READ

Launching Your Website Using Cloudflare Pages

banner

Ever wanted to publish the website you created to the web? but didn’t have the budget to buy a domain or hosting,

Don’t worry you can easily publish your projects to the web, using a tool called Cloudflare Pages,

Note: This post is purely for Beginners, We won’t be talking about Git/Github or any advanced tools in this post, I will make a separate post for that in the future,

Prequisites

You should’ve already made a Website using HTML, CSS, JS, or any framework/library like React/Vue/Svelte/Astro, etc.

For Example, Your File Structure might look like this

├── index.html
├── style.css
├── script.js
└── images/
 └── logo.png

Creating Cloudflare Account

First of all, go to cloudflare.com , Then you will be welcomed to this page, cloudflare.com Here Click on Start For Free

Then you will be prompted to create an account on Cloudflare pages

After Creating The Account you will be redirected to dash.cloudflare.com

workers and pages

Then click Click on Workers and Pages on the left sidebar.

alt text

Here click on Create

alt text

Then click on Pages

alt text

Then click on Upload Assets

uploadname

Here you will be asked to Enter the Project Name

Things to Consider While Choosing Project Name

If for example, you choose sample-project as your project name, At the end of publishing your website, your website link will be sample-project.pages.dev

but for that to happen sample-project.pages.dev should be available, which means if someone has already taken that name, it won’t be available

if it is unavailable Cloudflare will choose another URL, which will be shown like

alt text

here it is sample-projectw9z.pages.dev

You can choose another name which is available instead of going with names like these

After giving your name Click Create Project,

Then you will be asked to Upload Your Project, alt text Remember the file we talked about first, it’s time to upload those files Here click on Select from Computer

After Selecting the files, It will show the files like this alt text

Then click Deploy Site


Congratulations 🎉, You have published your website!


You can go to the link with .pages.dev you got while setting up the project name and see the website you made. for me, it is https://sample-project-w9z.pages.dev/

Feedback and suggestions  

If you find any errors in this post, I’d be happy to fix it, you can reach me through the mail [email protected]

Want to say thank you?

You could:

VIEW OTHER POSTS

Muhammed Mufeed CM