Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/intuition-dev/mbmobile
“Don’t do what I SAY, watch what I do”. Cordova, PhoneGap, Electron, SPA
https://github.com/intuition-dev/mbmobile
cordova electron phonegap spa
Last synced: 6 days ago
JSON representation
“Don’t do what I SAY, watch what I do”. Cordova, PhoneGap, Electron, SPA
- Host: GitHub
- URL: https://github.com/intuition-dev/mbmobile
- Owner: intuition-dev
- Created: 2018-05-26T14:01:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:30:45.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T01:11:22.059Z (over 1 year ago)
- Topics: cordova, electron, phonegap, spa
- Homepage: https://www.INTUITION.DEV
- Size: 58 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the Hybrid section, based on SPA.
Because native are file based and don't have an http server, locations are relative. Eg '../' instead of '/'.
So it is easier if all the screens or pages are at same level.A key part is making sure SEO works. No mater what page you load.
- [SPA video](http://youtu.be/LHFjjDPlU3A)
### MetaBake is open source and extensible low-code productivity tool for programmers; including dynamic apps and data binding. 'All my friends KNOW the low-coder'
## More
There are many example apps, and shipped templates include: an CMS module, a watcher, SPA, CMS, Website, Slides, Dashboard, CRUD, PWA, Electron, Hybrid mobile apps, server-less via AWS | GCP FireStore, RIOTjs, Ads and more.
MetaBake supports CSS classes in Markdown, plus, because it uses Pug - it can also do any HTML layout. But MetaBake is not static only - it fully supports and has examples, shipped apps, and docs for dynamic and even mobile apps.
Primary focus is high development productivity (via "low-code") and being easy to adopt. It is also fully flexible to build any Web App in any directory tree structure you like; anc use any CSS/SASS framework you like. Of course it is server-less, and it uses AWS S3 or GCP FireStore.
- Click for mbake Docs: [docs.INTUITION.DEV](http://docs.INTUITION.DEV)
- [git.INTUITION.DEV](http://git.INTUITION.DEV)
- Community [forum.INTUITION.DEV](http://forum.INTUITION.DEV)
- Check for the latest version of mbake: [npm.js](http://www.npmjs.com/package/mbake)# SPA-router usage for Electron
SPA is used in electron apps the same way it's used everywhere else:1) You have `#router` tag - it's children elements are goung to be replaced by router.
2) You initialize SPA by calling the following:
```javascript
SPArouter.init(onNavigate);function onNavigate(evt) {
if (evt.detail.type == SPArouter.NavSTART) { //start
} else if (evt.detail.type == SPArouter.NavDONE) {
$('#router').html(evt.detail.newContent)
// window.scrollTo(0, 0)
}
}
```# Porting to Capacitor (by Ionic)
You can use the same code-base for Capacitor (by Ionic) as well as for electron as well as for web. With only difference that electron will require it's app start file and Capacitor (by Ionic) will require config.xml file. So to port the app to Capacitor (by Ionic) you will need to configure following this [instruction](https://capacitor.ionicframework.com/docs/getting-started).
Go to https://capacitor.ionicframework.com/docs/getting-started . Here you will upload zip file and get apk and ios file. After that you are ready: just download apk and here you go.To debug your app:
Connect your device with app installed to your developer machine. Enable debugging via usb. To enable it on android press you prone version 7 times to unlock developer options, then go to unlocked options and enable usb-debugging, reattach your device to working machine and accept it's access to your device.
Then open developer tools in chrome, find menu at the end of devtools bar and click 'More tools' then 'Remote devices'.
There you'll find your device. For more info go to https://developers.google.com/web/tools/chrome-devtools/remote-debugging/ .