Everyone knows it, allowing you to build a personal blog for free, and it is also decentralized

Foreword:

Maybe you don’t have your own blog now, but you want to express yourself when necessary and record the life around you. Maybe you have set up your own blog, but it is often slow to access if it is set up on a centralized server and is prone to downtime. Then 4everland may be a good choice for you. It doesn’t cost money, has fast access speed and comes with a domain name. This article is to help new friends who want to have their own blog build a decentralized blog or to help the original blogger build a backup site. 

introduce:

4everland : 4everland provides a cloud platform that can optimize the entire project development and deployment experience . It has powerful functions worth exploring. It is free for personal use, provides domain name access, and is easy and fast to use .

hexo : Hexo is a static blog website generator based on nodejs . After installation using scaffolding, the commands are simple to operate and can be used directly out of the box. It supports a variety of themes and a high degree of customization. It mainly uses markdown syntax . You can develop your own plug-ins to optimize your blog . 

 

build

Before building a blog, we need some preparations, firstly, 4 everland platform accounts, and secondly, installing nodejs and hexo-cli scaffolding.

First find the official website and select Hosting

Connect your GitHub account

Create a new project

Install hexo-cli

Before installing hexo-cli, you need to ensure that nodejs is installed on your computer. Nodejs needs to be downloaded from the node official website . After installing nodejs, npm will be installed accordingly. Then you can install hexo-cli.

Installation command:

npm install hexo-cli -g

Check whether the installation is successful.

4everland + hexo create project

The 4everland platform supports the selection of multiple project templates, including but not limited to Next.js, Nuxt.js, Hexo, Angular and other types.

Since the project team currently does not provide an official template, you need to go to github to import git or upload local git to github and then deploy it through 4EVERLAND.

Here's how to put local code on github.

Initialize hexo after confirming that hexo and Git have been installed.

$ hexo init Blog

The above command will create a folder named Blog , and all content initialized by the blog will be stored in this folder.

Next, switch to the Blog directory

$ cd Blog

$ npm install

Execute the following command to generate a static page

$ hexo generate

(or directly hexo g)

Install hexo-server package

$ npm install hexo-server –save

Enter https://localhost:4000 in the browser and you will see the helloworld page of the local hexo

As above, it is already running locally.

At this time, as long as you create a project in github and clone the local code to git, the basic preparations have been completed.

Finally, you only need to log in to your github account in 4everland for simple deployment and you will find that your blog is running perfectly on the IPFS decentralized network.

 

Guess you like

Origin blog.csdn.net/MDJS_OSOS/article/details/122437918#comments_25897906