Skip to content

Files

Latest commit

0f6b6d1 · Oct 9, 2022

History

History
68 lines (50 loc) · 1.05 KB

README.md

File metadata and controls

68 lines (50 loc) · 1.05 KB

jvue-front

Next version for jvue-front using nuxt3 which supports Metaweblog API.

We will start develop after Nuxt3 stabe release,please wait...

See also:element-plus/element-plus-nuxt-starter#46

Install

dnf install npm
# apt install nom
npm i -g n
sudo n stable

npm i -g yarn
npm i -g vercel
npm i -g pm2

Init

yarn

Set up environment variables

Copy the .env.example file in this directory to .env (which will be ignored by Git):

cp .env.example .env

and change the config, the file maybe like this:

# setting for Siyuan-Note
SIYUAN_API_URL=
SIYUAN_AUTH_TOKEN=

# setting for WordPress
WORDPRESS_API_URL=https://wordpress-host/xmlrpc.php
WORDPRESS_USERNAME=
WORDPRESS_PASSWORD=

# set wordpress as default
DEFAULT_TYPE=wordpress

Dev

yarn dev

or

yarn vdev

Deploy

pm2 start pm2.json
pm2 stop pm2.json