I wrote this post in English because of my intension to send it to wiki.js' channel to reply to others' questions.
The operations below were done in Ubuntu Server 22.04 amd64

Set up the environment

  1. Update system dependencies

    sudo apt update && sudo apt upgrade -y
  2. Install Node.js 18.x and yarn
    If Node 18.x was already installed in your instance, please skip the step.
    To install it directy, head to https://nodejs.org/en/download/. I'll set up nvm here and then use it to set up the node environment.

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
    # restart terminal
    nvm install node # install latest node
    npm install --global yarn
  3. Install PostgreSQL 14.x
    If postgresql was already installed on your instance, please skip this step.

    sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    sudo apt-get update
    sudo apt-get -y install postgresql
  4. Set up PostgreSQL database

    sudo -u postgres psql
    CREATE USER wikijs WITH PASSWORD 'wikijsrocks';
    CREATE DATABASE wiki OWNER wikijs;
    GRANT ALL PRIVILEGES ON DATABASE wiki TO wikijs;
    \q

Set up Wiki.js

  1. Clone Wiki.js' repo and do setup

    cd /your/desired/directory
    git clone https://github.com/requarks/wiki.git
    cd wiki
    git checkout vega
    yarn install
    cd ux
    yarn install
    npm run build #build assets
    cd ..
    cp config.sample.yml config.yml
    npm run start

Try out

  1. Access wiki js at localhost:3000 or <your instance's local ip>:3000
    You can try the below url:
    Login Panel: /login
    Admin Panel: /_admin/
    Profile Panel: /_profile