This is a modern, high-performance MDict dictionary web application based on Go and React.
- High-Performance Backend: Developed in Go for fast dictionary query services.
- Modern Frontend: Built with React, Vite, TypeScript, and shadcn/ui for a beautiful and responsive interface.
- MDict Format Support: Compatible with common
.mdxand.mdddictionary file formats. - Single-File Deployment: The backend and frontend can be packaged into a single binary for easy deployment and distribution.
- Backend: Go
- Frontend: React, TypeScript, Vite, Tailwind CSS, shadcn/ui
- Package Manager: pnpm
Download binary file from release.
Place your MDict dictionary files (e.g., .mdx, .mdd files) into the dict/ folder in the project root. Each dictionary should have its own subdirectory.
For example:
dictionary-server
dict/
└── MyDictionary/
├── MyDictionary.mdx
├── MyDictionary.mdd
└── MyDictionary.css
This project can be packaged into a single executable binary that includes all frontend static assets.
cd web
pnpm install
pnpm buildThe build script will automatically embed the frontend assets from the web/dist directory into the final Go executable.
In the project root directory, execute:
go build -o dictionary-server .After the build is complete, you will get an executable file named dictionary-server. You can run it directly to start the entire application without needing to start the frontend service separately.
go-mdict GPLv3
This project is licensed under the GPLv3 license. See the LICENSE file for details.