N
Novu14mo ago
empe

Using the headless notification center library with Ruby on Rails, Django or Laravel

According to the documentation, "users can easily incorporate our notification system into any framework or vanilla JavaScript project," and I just wanted to ensure that it includes non-javascript/typescript frameworks.
11 Replies
Prosper
Prosper14mo ago
@biswaviraj Does the headless work with a bundled version? One where I don't have to do an npm install?
BiswaViraj
BiswaViraj14mo ago
No, it won't work on non-js/ts env, currently to use headless package, one needs to install it with npm. For those scenarios, one can use the web component. Also, if needed we can bundle the headless package and serve it via CDN, enabling anyone to use it.
empe
empe14mo ago
It would be great
Prosper
Prosper14mo ago
It would be great for us to bundle the headless package and serve it via CDN. As a Laravel developer, I will love to be able to also use headless
BiswaViraj
BiswaViraj14mo ago
@dimagrossman I think we should serve it via CDN then
Dima Grossman
Dima Grossman14mo ago
Sounds like a good idea @biswaviraj submit a linear task for it?
empe
empe14mo ago
Once it is served via CDN, how do you implement this with Laravel? Can you give me an example of an service package you've used this way?
BiswaViraj
BiswaViraj14mo ago
it will be similar to how web component is used
<script src="https://novu-web-component.netlify.app/index.js"></script>
<script src="https://novu-web-component.netlify.app/index.js"></script>
Prosper
Prosper14mo ago
Exactly! Just a drop in script like this
empe
empe14mo ago
Thank you both! I think it would be amazing addition that will open countless doors