Skip to content

Press your mind(markdown) gracefully, which is powered by nuxt.js 3.0 and nuxt.js content 2.0.

Notifications You must be signed in to change notification settings

aborn/mindpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

551 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MindPress

cd

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.

1. MindPress modes

1.1 SSG

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

1.2 FCM

FCM, File-based Content Management System. This mode deployed in node server.

pnpm dev:fcm

1.3 SCM

SCM, Server-based Content Management. This mode deployed in another server. mindpress-serv is the implementation server api.

pnpm dev:scm

2. How to develop.

2.1 Nuxt fronted dev

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

2.2 API server dev (Optional)

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!

3. How to deploy.

3.1 Docker deploy (Recommended)

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

3.2 Deploy from source code

Build the application and deploy it at production (FCM mode):

  1. SSG mode build and deploy
cd mindpress-fe
pnpm gh
  1. FCM mode build and deploy
cd mindpress-fe
pnpm install      
pnpm build:fcm    
pnpm deploy:fcm
  1. SCM mode build and deploy Deploy serer first.
cd mindpress-fe
pnpm install      # npm install
pnpm build:scm    # npm run build:scm
pnpm deploy:scm

4. Framework

5. Preview

  1. The home page /

index

  1. Edit file /edit/articleid

edit

  1. Markdown file(article) detail /article/articleid

article

  1. Create new file /edit

new

  1. Search by keyword /search

search

  1. Tag group page /tag/your_query_tag

tag

  1. My space docs /my

my

About

Press your mind(markdown) gracefully, which is powered by nuxt.js 3.0 and nuxt.js content 2.0.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published