A Single Page Js Framework. Powered by RequireJS.
npm i oyanezm/bolerojs --save
create a file app.js
containing routes
and controller
references, and
pass it to the framework load
method.
require(["node_modules/bolerojs/bolero"], function(bolero){
var routes = [ "app/artist/route" ];
var controllers = [ "app/artist/controller" ];
bolero.load(routes, controllers);
});
Create a index.html
file and import bolero.js
from within the header
. It' will use the file app.js
as it's entrypoint.
<script src="node_modules/bolerojs/bolero.js" type="text/javascript" />
You can serve by doing
npx serve