If you are a Pro user of GitHub, you can set up your website using a Private repository, which means that others can only visit your website but not contents in this repository. But if not, you have to make it public.
Installing hexo
Before that, let us check …
If you haven’t installed Node.js
1
brew install node
Check if it succeeds
1 2
node -v npm -v
Here we go!
1
npm install -g hexo-cli
Waiting a few minutes (or longer, depending on your network condition)
Check if hexo is successfuly installed
1
hexo -v
Initializing the Project
Creating Project
1
hexo init <blog-name>
Installing Independecies
1 2
cd <blog-name> npm install
It’s nearly done…
Start a local servel
1
hexo server
Then view your page at this link and you will see it!