Before We Start
Before you begin, you’ll need:- The Bless CLI installed on your computer (hop over to our installation guide)
- Some basic HTML, CSS, and JavaScript knowledge (but don’t worry, we’ll provide all the code you need\\!)
Let’s Get Started
Create Your Project Space
First, fire up your terminal and run this command to create your new project:my-awesome-site). This will create your project template where all the magic will happen.
Next, let’s move into your new project:
Quick Login Check
Before we proceed further, let’s make sure you’re logged in:Building the Website
Set Up Your Canvas
Create a new folder calledpublic - this is where all your website files will live. If you want to do it using the terminal, run:
Create Your First Files
Let’s create three files that will bring your website to life. Don’t worry about typing everything perfectly - just copy and paste - we’ll walk through each component:index.html- This is your main page that visitors will seestyle.css- Makes your website visually appealing with custom stylingscript.js- Adds interactive features to engage your visitors
Set Up Your Simple Server
We are almost there\! Let’s edit theindex.ts file in the project root (you need to go back from the public folder where you just added the three files). This creates a simple server that will send the three files you just created to the browser accessing your website.
index.ts
Time to Launch
Now, we are ready to deploy and see your website in production!Test Drive Locally
Before we show the world, let’s make sure everything looks perfect. Run the following command to test your website locally on your computer.http://localhost:3000 to see the website you just created come to life\\!
Deploy to Bless
Now it’s finally time to deploy your website to the Bless Network and show it off to the world\\! To do that, run:https://your-awesome-site.bls.dev that you can share with everyone.