jasonelle-archive / docs

📝 Jasonelle Documentation
https://jasonelle-archive.github.io/docs/legacy/
33 stars 49 forks source link

Wordpress JSON compatibility #36

Open niszlo opened 3 years ago

niszlo commented 3 years ago

Hello,

I'm just discovering Jasonelle's great work, and it seems a very good candidate for my need : releasing a simple website based application getting content on-the-fly (e.g. home showing all recent articles openable isolately + burger menu offering various articles categories) declinable on both Android & iOs platforms, ideally based on WordPress JSON interface.

Yet it's unclear from documentation/example how that would be done. Shall i dev a specific WordPress or PHP module displaying my SQL/website content into Jasonette expected JASON format ? Or shall i rather use native WordPress JSON interface as it is & integrate it with a trick in current Jasonette implementation ?

Thanks in advance if you have suggestion, or example on how to do this best. If so, would imo be great to commit it into the already existing example as i guess my search might be a common one after all :)

clsource commented 3 years ago

Hello, normally such use case can be fullfilled using a webapp made with React, Vue, Svelte or similar that connects with the Wordpress Rest API. Then upload it to a server you control and finally using that url for embed it on a Jasonette web container.

A popular option too is using the services at bubble.io and create an app with that 👍 (and then embed it with Jasonelle). But any website would do.

https://github.com/jasonelle/jasonelle/wiki

{
    "$jason": {
        "body": {
            "background": {
                "type": "html",
                "url": "https://www.google.com",
                "style": {
                    "background": "#ffffff",
                    "progress" : "rgba(0,0,0,0)"
                },
                "action": {
                    "type": "$default"
                }
            }
        }
    }
}
niszlo commented 3 years ago

Ok i managed this pointing to a PWA i cloned & mostly recoded.

Sole problem left now : to publish the resulting signed APK, Play Store requires API 29 as target and idk how ...

Also got a warning that "com.jasonette" already exists, shall i rename subfolders and therefore dependancies pathes everywhere needed, to be able to publish ?

Thanks for suggestions to finalize this.

PS : i'm now installing SKD 10.0 + changing pathes to see if that solves Play Store warnings ...

clsource commented 3 years ago

You can also check the Android setup guide :)

https://jasonelle-archive.github.io/docs/legacy/android/