Open licolsan opened 6 years ago
Was scanning through the source code. I believe that catarse.js is used to provide the UI components.
A set of mithril components to use accross catarse.
Catarse uses Mithril router + Catarse.js inside api/application.js
to provide routing for its SPA.
https://github.com/catarse/catarse/blob/0e62e3b/app/assets/javascripts/api/application.js#L150-L207
how to deploy it?
Ideally, you should be able to follow the instruction in the Readme.md to build the javascript file, e.g.
gulp build
It will then generate catarse.min.js
and catarse.js
within the dist
folder. (However it doesn't work for me)
Then inside the package.json of catarse, you can change the repo link to point to your own repository.
See: https://github.com/catarse/catarse/blob/bf3f90a/package.json#L8
Thank you @amoshydra!
What is this catarse.js used for, and how to deploy it. Can anybody helps me?