Overview
魔豆文库 (Moredoc) is an open-source document library system developed by Morefun Network Technology Co., Ltd using Golang. It is similar to Baidu Wenku and Sina Aiwen Wenku and allows users to preview and manage documents in various formats such as TXT, PDF, EPUB, MOBI, and Office. It is a refactored version of the Dochub document library (on Github and Gitee). The system is built using Golang (gin + gRPC + GORM) and Vue.js (Nuxt2 + element-ui), with MySQL 5.7 as the database.
Features
- Support for various document formats including TXT, PDF, EPUB, MOBI, and Office
- Online preview and management of documents
- Integration with Golang (gin + gRPC + GORM) and Vue.js (Nuxt2 + element-ui)
- Open-source with code available on Github and Gitee
Installation
To install the Moredoc theme, follow these steps:
Ensure you have the following dependencies installed:
- Golang 1.18+
- Node.js 14.16.0 (can be managed with nvm)
- MySQL 5.7+
Clone the Moredoc repository from Github or Gitee:
git clone https://github.com/mnt-ltd/moredoc.git
Install the required Golang dependencies:
go mod download
Install the required Node.js dependencies for the frontend:
cd web npm install
Configure the app.toml file with your desired settings.
Initialize the backend:
go run main.go init-backend
Initialize the frontend:
npm run init-frontend
Set up the initial administrator account:
go run main.go init-admin
Run the development server:
go run main.go serve
Summary
Moredoc is an open-source document library system developed using Golang and Vue.js. It allows users to preview and manage documents in various formats online. The installation process consists of cloning the repository, installing the necessary dependencies, and configuring the app settings. With its support for multiple document formats and its user-friendly interface, Moredoc is a powerful tool for document management.