A high-performance, multi-language, full-stack Content Management System (CMS) built entirely in MoonBit using the moonback web server framework and the async runtime.
🚀 Features
Server-Side Rendering (SSR): Dynamic page generation with an adaptive CSS glassmorphic dark-theme UI.
Multi-Language Translation Engine (i18n): Fully native translation capabilities supporting fallback locales and simple dictionary lookups for English, Simplified Chinese, Traditional Chinese, and Japanese.
Multi-Language Mock Database: A memory-backed store loaded with multi-lingual seed articles, mimicking real-world CMS storage.
Automatic & Manual Locale Routing: Uses URL parameters (?lang=zh) and persistent browser cookies to detect, set, and switch language interfaces automatically.
Article Management Editor: Web interface and REST API endpoint (POST /api/articles) allowing users to create new articles in their selected language.
MoonBit Multi-Language CMS (moonbit-multilang-cms)
A high-performance, multi-language, full-stack Content Management System (CMS) built entirely in MoonBit using the
moonbackweb server framework and theasyncruntime.🚀 Features
?lang=zh) and persistent browser cookies to detect, set, and switch language interfaces automatically.POST /api/articles) allowing users to create new articles in their selected language.📂 Project Architecture
🛠️ Getting Started
Prerequisites
moonCLI is installed (moonc v0.10.3or later).gcc,clang, orcl) is required for building native binaries and running native tests.Build and Run
Clone the Repository:
Verify & Compile:
Run the Web Server (Native Target):
The server will start listening at:
http://127.0.0.1:3000Running Tests
If a system C compiler is available, you can run tests natively:
📝 License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.