Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 935 Bytes

README.md

File metadata and controls

46 lines (33 loc) · 935 Bytes

remoji

npm version

emoji reactions anywhere! demo

Usage

<div data-remoji-id="demo"></div>
<script type="module">
  import { remoji } from "https://www.unpkg.com/@jshawl/remoji@latest/remoji.js";
  remoji.init();
</script>

Configuration

remoji.init({
  apiUrl: "https://my-emoji-reaction-server.com", // default: https://remoji.jshawl.workers.dev
  emojis: ["👍", "👎"], // default: ["👍", "😄", "❤️", "🚀", "👀"]
  orgId: "acme corp, inc.", // default: window.location.host
  userId: "jesse@jesse.sh", // default: crypto.randomUUID()
});

Local Development

Start the client:

cd client && npm start

Start the server:

cd server && npm start

Open the development page:

open http://127.0.0.1:8080/examples/development.html