Press your mind(markdown) gracefully, which is powered by nuxt.js 3.0 and nuxt.js content 2.0.
Press your mind(markdown) gracefully, which is powered by nuxt.js 3.0 and nuxt content 2.0. Markdown editor use md-editor-v3. Mindpress provides three modes: SSG
(default), FCM
and SCM
.
SSG
, mindpress uses nuxt static site generation (SSG) prerenders every route of your markdown files when building. Here is static site example https://aborn.github.io/mindpress/, which is hosted by github pages.
FCM
and SCM
modes, you can edit/save markdown file upstream from another api server. Here is an java language api implementation mindpress-serv.
SSG, Static Site Generation. Mindpress uses nuxt SSG generate static pages. SSG can be deployed in Github Pages, here is an example https://aborn.github.io/mindpress/.
pnpm dev:ssg
FCM, File-based Content Management System. This mode deployed in node server.
pnpm dev:fcm
SCM, Server-based Content Management. This mode deployed in another server. mindpress-serv is the implementation server api.
pnpm dev:scm
Make sure you have node 18+ env and install cross-env
.
pnpm install cross-env -g
Setup, install deps and boot up.
cd mindpress-fe
pnpm install
pnpm dev:fcm # pnpm dev:scm (scm mode)
Now the nuxt server boot up in http://localhost:7001
Only for SCM
mode (pnpm dev:scm
in 2.1)
Make sure you have Java 17+ env.
Boot up mindpress-serv
backend api server.
The api server boot up in http://localhost:3012
Note: FCM
and SSG
nodes, we don't need api server!
All docker deploy scripts in scripts/docker
For FCM
mode
./scripts/docker/fcm/build.sh # build nuxt
./scripts/docker/fcm/docker.sh # make docker image and container and boot up
And docker container boot up in http://localhost:7010
Build the application and deploy it at production (FCM
mode):
SSG
mode build and deploycd mindpress-fe
pnpm gh
FCM
mode build and deploycd mindpress-fe
pnpm install
pnpm build:fcm
pnpm deploy:fcm
SCM
mode build and deploycd mindpress-fe
pnpm install # npm install
pnpm build:scm # npm run build:scm
pnpm deploy:scm
/
/edit/articleid
/article/articleid
/edit
/search
/tag/your_query_tag
/my