ucs/frontend/README.md
2025-03-13 23:36:54 +02:00

24 lines
526 B
Markdown

# Universal Comments System
## Build
Build and run on port 3002.
```sh
(npm run build; cd dist/assets; mv *.js index.js; mv *.css index.css; warp --port 3002)
```
## Use
In your HTML, add the following:
```html
<div id="ucs-comments"
data-element="ucs-comments"
data-ucs_url="[BACKEND_URL]"
data-site="[WEBSITE]"
data-path="[PAGE_PATH]"
></div>
<script type="module" src="[FRONTEND_URL]/index.js"></script>
<link rel="stylesheet" type="text/css" href="[FRONTEND_URL]/index.css">
```