Skip to content

jguyet/jiji-js.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jiji-js.io


Jiji-js.io is a desktop web applications for expose documentation
of Jiji-js Framework
writed with Jiji-js Framework

Live Jiji.io

 

Requirements

node >= v10.19.0 npm cli >= 6.13.4 jiji-cli >= 0.0.20 (npm install -g jiji-cli)

Development Setup

Sample file structuration :
src/
src/index.html
src/main.index.js

In src directory you are free to manage your js controllers and other js files.

index.html file are the single page of your application projet

<!DOCTYPE html>
<html>
    <head>
        <script src="./index.js"></script>
    </head>
    <body>
        <div class="router"></div>
    </body>
</html>

main.index.js file are the main of your application

const Jiji = require("jiji-js");
Jiji.initialize(() => {/** code */});
Sample Routing structuration :

main.js

const Jiji = require("jiji-js");
Jiji.initialize(() => {
    Jiji.Router.init([
        /** array of controller objects */
    ]);
    Jiji.Router.route();// apply default route "/" by map provided in array at init Router
});

Controller provided in Router.init example Hello World :

...
Jiji.Router.init([
    {
        path: "/",
        controller: {
            constructor: (controller, callback) => {
                callback();// call the callback to signal that your load is complete
            },
            destroy: (controller) => {
                console.log('destroyed called');
            },
            innerHTML: `<div>Hello World</div>`
        }
    }
]);
...

Debug

ji debug

go to http://localhost:8080

Build application

ji build

Issues

Please drop file Developer Guide, Cookbook, and code sample issues only in this Jiji.io github repo.

Technical questions concerning Jiji-js itself belong in the jiji-js source code github repo.

License

MIT License

About

Jiji.io is site for Jiji-js documentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published