Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.
/ BunBlog.UI Public archive

呼呼小笼包博客前端界面

License

Notifications You must be signed in to change notification settings

huhubun/BunBlog.UI

Repository files navigation

Important

BunBlog has been discontinued. You can use the Migration Tool to migrate existing content to Bammemo.

BunBlog.UI

GitHub package.json version Docker Pulls

A blog front end site developed using Nuxt.js. Welcome to my Blog(Bun Dev Blog) https://bun.plus
Please note, this project required a server side program BunBlog.API to provider data

Docker image

docker push huhubun/bunblog.ui

Development

# install dependencies
$ npm install

# serve with hot reload at localhost:17088
$ npm run dev

Env

BASE_URL=
BROWSER_BASE_URL=
CLIENT_JS_PATH=

Build and deploy

First, run npm run build to generate client and server code

$ npm install
$ npm run build

You will see the .nuxt folder generated.

Then copy the following to the server

  • .nuxt folder
  • server folder
  • sitemap folder
  • static folder
  • nuxt.config.js file
  • package.json file

And upload the /.nuxt/dist/client/ folder to CDN https://cdn.bun.plus/blog/client/

Finally, execute the following code on the server

npm install
pm2 start -n bunblog ./node_modules/nuxt/bin/nuxt.js -- start

Analyze

set nuxt.config.js

build: {
  analyze: true;
}
npx nuxt build --analyze