关于
Meh... another comment system
数据与分析实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Meh…
…another comment system
Meh…
- …is a simple, no-frills commenting system
- …has threaded comments
- …is self-hosted
- …has multi-site support from a single installation
- …has multi-language support
- …has Mastodon integration
- …has Disqus import
- …is simple enough to understand and modify
- …made by splitbrain
Overview
Meh is a commenting system with a client-server architecture:
Server Component: A PHP backend that handles comment storage (in SQLite), moderation, and API endpoints. It can be installed on your own server and supports multiple sites from a single installation.
Client Components: A set of web components (custom HTML elements) that can be embedded in any website to display and submit comments. These components communicate with the server via a REST API.
Quick Start
A quick and dirty way to get started is to use the built-in PHP server on your local machine.
cd backend
composer install
cd ../frontend
npm install
npm run build
cd ..
cp .env.example .env
$EDITOR .env
./meh migrate
php -S localhost:8000 -t public
You can now browse this documentation at http://localhost:8000. It will also serve the Meh components and the API.
In your blog, add the following to your HTML:
<!-- Add a comment form -->
<script type="module" src="http://localhost:8000/meh/meh.esm.js"></script>
<meh-form>
<meh-mastodon></meh-mastodon>
<meh-login></meh-login>
</meh-form>
<meh-comments></meh-comments>
This should give you a rough idea how Meh works. For a production setup, you should point your web server at the public directory.
More details on how to set up the server can be found in the Server Setup section.
Server Setup
- Server Setup
- Command Line Tool
- Database Setup and Upgrade
- Configuration
- Multi-site Support
- Mastodon Integration
- Email Notifications
- Gravatar Integration
- Importing from Disqus
Client Setup and Usage (on your blog)
Alternatives
Check out open-source self-hosted comments for a static website for a big list of similar projects.
探索相关项目
加载中…