58

GitHub - OnsenUI/OnsenUI: Mobile app development framework and SDK using HTML5 a...

 5 years ago
source link: https://github.com/OnsenUI/OnsenUI
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

68747470733a2f2f6f6e73656e75692e6769746875622e696f2f6172742f6c6f676f732f6f6e73656e75692d6c6f676f2d312e706e67

Forum TypeScript definitions
Circle CI NPM version CDNJS

Onsen UI - Cross-Platform Hybrid App and PWA Framework

Onsen UI is an open source framework that makes it easy to create native-feeling Progressive Web Apps (PWAs) and hybrid apps.

The core library is written in pure Javascript (on top of Web Components) and is framework agnostic, which means you can use it with your favorite framework and its tools. We provide some extra binding packages to make it easy to use Onsen UI's API with many popular frameworks:

68747470733a2f2f6f6e73656e2e696f2f696d616765732f636f6d6d6f6e2f69636e5f72656163745f746f702e737667
React
68747470733a2f2f6f6e73656e2e696f2f696d616765732f636f6d6d6f6e2f69636e5f616e67756c6172325f746f702e737667
Angular 2+

68747470733a2f2f6f6e73656e2e696f2f696d616765732f636f6d6d6f6e2f69636e5f7675656a735f746f702e737667
Vue

68747470733a2f2f6f6e73656e2e696f2f696d616765732f636f6d6d6f6e2f69636e5f616e67756c6172315f746f702e737667
AngularJS 1.x

Some other frameworks are supported by community packages (not tested or implemented by the core team): Aurelia, EmberJS.

Both flat (iOS) and Material (Android) designs are included. The components are optionally auto-styled based on the platform, which makes it possible to support both iOS and Android with the same source code.

Getting started

We have several resources to help you get started creating hybrid apps and PWAs with Onsen UI:

Get Onsen UI

Download the latest released version

We have a distribution repository with changelog. Onsen UI is also available in npm, bower and jspm. Example:

npm install onsenui

This downloads the core Onsen UI library. To install bindings, you can install react-onsenui, vue-onsenui, ngx-onsenui or angularjs-onsenui.

Download or request from a CDN

You can also take the necessary files from a CDN. Some of the options are unpkg, jsDelivr and cdnjs.

Get the latest development build

Optionally, you can download the latest development build here. Be careful, usually everything there is already tested but it might be unstable sometimes.

Examples with source code

There are lots of sample applications written using Onsen UI. Here are some examples with source code and tutorials to give you an idea of what kind of apps you can create.

68747470733a2f2f6f6e73656e2e696f2f696d616765732f73616d706c65732f706f6b656465782d70696b616368752e706e67 68747470733a2f2f6f6e73656e2e696f2f696d616765732f73616d706c65732f72656163742d72656475782d776561746865722e706e67 68747470733a2f2f6f6e73656e2e696f2f696d616765732f73616d706c65732f796f75747562652e706e67

Onsen UI ecosystem

Because sometimes a UI framework may not be enough to make hybrid app development easy, Onsen UI comes with a complete ecosystem of well integrated tools. Meet Monaca.

68747470733a2f2f6f6e73656e75692e6769746875622e696f2f6172742f6c6f676f732f6d6f6e6163612d6c6f676f2d322e706e67

Developed by the Onsen UI team, Monaca is a toolkit that makes hybrid mobile app development with PhoneGap / Cordova simple and easy: Onsen UI Cordova templates, debugging suite, push notifications, remote build, back-end solutions, encryption, version control, continuous integration and more. Furthermore, it provides multiple development environments with everything already configured and ready to go:

Cloud IDE - Command Line Interface - Localkit GUI

Example with CLI:

$ [sudo] npm -g install monaca
$ monaca create helloworld # And choose the starter template
$ monaca preview # Preview on the browser
$ monaca debug # Preview on a real device
$ monaca remote build --browser # Production build on the cloud

See the Onsen UI Getting Started Page for more information.

Browser Support

Onsen UI is tested to work with the following browsers and mobile OS.

  • Android 4.4.4+
  • iOS 9+
  • Chrome
  • Safari

Contribution

We welcome your contribution, no matter how big or small! Please have a look at the contribution guide for details about project structure, development environment, test suite, code style, etc. All the version updates are mentioned in the changelog.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK