Yuzhe's Blog

yuzhes

How to run 小龙系统

Posted at # Misc # 教程
EN ·

How to run 小龙系统

DANGER

Documentation changes quickly—stay tuned!

Run the 龙博客 stack

These repos need to be cloned:

  1. https://github.com/xuxl-dev/artalk
  2. https://github.com/xuxl-dev/blog
  3. https://github.com/xuxl-dev/caddy

artalk is the comment backend, blog is the main app, and caddy is the reverse proxy. This guide assumes they are all cloned into the same directory, like this:

image-20230829183811539

Development

  1. Start artalk

    cd artalk
    ./artalk
  2. Start blog

    cd blog
    pnpm i # Install dependencies. If pnpm is not installed, install it first.
    pnpm dev
  3. Start caddy

    cd caddy/dev
    caddy start # Install caddy first, if needed.
  4. Visit localhost

TIP

Comment area assets are provided by the comment service. If you directly open the port exposed by pnpm dev, comments will not load correctly because the reverse proxy is required.

Deployment

[TODO]