1.0.0 • Published 7 years ago

polyonic v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Polyonic

The ultimate "Universal App"

Now using the latest Ionic 3.3.0 release :tada:

JavaScript Style Guide devDependencies Status optionalDependencies Status GitHub version

MIT Licence Open Source Love

Build once using web technologies and deploy everywhere!

An Electron Ionic application shell for creating Web Apps, Progressive Mobile Web Apps, Native Mobile Apps and Desktop Apps.

This project combines the Electron Framework with Ionic 2 and provides a starter for building out an app that can run on either the desktop (macOS, Windows and Linux), a browser or mobile devices (iOS, Android and Windows Phone). You can use this application to build and run on one or even all of these platforms.

Motivation

When working in small teams creating web and mobile applications, it is difficult and time consuming for new team members to pick up the different technologies for each platform. I have also been asked a few questions that motivated me to try Polyonic out:

  • Is there was way to run this mobile app on the desktop?
  • Can we cache more in the browser for offline working?
  • Can we have one Universal app that can run on the desktop, mobile, web and Office 365?

These questions made me think about the limitations of the browser for off-line editing and caching and was there a way to create a package that can be used to flesh out any app we require, whilst reducing the overhead of having to learn numerous libraries and frameworks for each platform.

And that is why I decided to try combining Electron and Ionic. Is it wise to have a universal app using a mobile framework? Probably not, but it is fun :wink:

Quick start

The dependencies for this project are Node.js, Ionic2 Framework and Cordova.

Make sure you have node installed and running, then install Ionic and Cordova globally using npm.

npm install -g ionic@beta cordova

Clone the repo, change into the Polyonic directory, install the npm packages and run the Electron app

git clone https://github.com/paulsutherland/Polyonic.git
cd Polyonic

npm install
npm start

You now have Electron and Ionic running as a Desktop app.

Running Live Reload for Electron Development

When developing a desktop app, you will want to have the app live reload as you save your changes.

npm run dev

Ionic CLI Commands

When developing a web app, progressive app or native mobile app, all of the Ionic CLI commands are available when you are in the src directory, as this is a standard Ionic app. Change into the src directory and run commands from the Ionic CLI.

cd src
ionic

eg:
ionic serve --lab --port 4000 -r

Credits

This application was built using the Electron Boilerplate Project for scaffolding out the Electron application, the Electron Framework for creating desktop apps and Ionic 2 for the UI and creating Native Mobile Applications, Progressive Mobile Web Applications and Web Applications.

Todo

  • Add Karma and Protractor testing frameworks. Use Lathonez's example in his Clicker app until the Angular 2 testing docs are complete.
  • Add Office 365 add-in code for running Polyonic in Office 365 applications.
  • Add instructions for running Polyonic on the Hololens (Yep we can) :sunglasses:.
  • Remove express as we can run a simple node http server instead. As it stands this app is just an example of what can de done.

License

Released under the MIT license.

1.0.0

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago