## Development & Build
```sh
# Install the required Node version
nvm i && nvm use
# Install dependencies
pnpm i
# Start the dev server, available at http://localhost:5173/md/
pnpm web dev
# Production build, served under /md/
pnpm web build
# Production build, served at the root path
pnpm web build:h5-netlify
# Chrome extension dev mode
# After starting, open chrome://extensions/, enable Developer mode,
# then load the unpacked extension from apps/web/.output/chrome-mv3-dev
pnpm web ext:dev
# Package the Chrome extension
pnpm web ext:zip
# Package the Firefox extension — output: apps/web/.output/md-{version}-firefox.zip
pnpm web firefox:zip
# Package the uTools plugin — output: apps/utools/release/md-utools-v{version}.zip
pnpm utools:package
# Cloudflare Workers development and deployment
pnpm web wrangler:dev
pnpm web wrangler:deploy
```
## Self-hosting
### Option 1: npm CLI
```sh
# Install globally
npm i -g @doocs/md-cli
# Start (default port: 8800)
md-cli
# Start with a custom port
md-cli port=8899
```
Supported CLI options:
- `port`: Listening port. Defaults to `8800`; a random port is chosen if occupied.
- `spaceId`: dcloud service space ID
- `clientSecret`: dcloud service space secret
### Option 2: Docker
```sh
docker run -d -p 8080:80 doocs/md:latest
```
Then open http://localhost:8080 in your browser. For more details on the Docker image, see https://github.com/doocs/docker-md.
## Star History
## Who's Using It
See [USERS.md](USERS.md) for a list of WeChat Official Accounts using this project.
## Contributing
PRs and Issues are welcome. Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for the contribution workflow and guidelines.
## Support
If this project has been helpful, you're welcome to support its continued development.
## Feedback
For bug reports or feature requests, please open an [Issue](https://github.com/doocs/md/issues). You can also scan the QR code below to join the WeChat discussion group. If the QR code has expired, add the account as a friend with the note `md`.