npm install
npm run build
npm start
Make sure the backend is running first, and then proceed to launch the frontend.
To make this run on other frameworks through the <script>
tag, use http-server.
npm install --global http-server
http-server .
Then just add something like this in your HTML body:
<body>
<div id="root"></div>
<script src="http://localhost:8081/dist/v1/taiki.js"></script>
<script>
const TaikiModal = window.Taiki.Create("hi");
TaikiModal.open()
</script>
</body>
Depending on what port you're on, you can change that in the link above and make sure that the Taiki Modal get initialized first.