https://github.com/os-js/osjs-example-provider
OS.js Example Service Provider
https://github.com/os-js/osjs-example-provider
osjs osjs-provider
Last synced: 11 months ago
JSON representation
OS.js Example Service Provider
- Host: GitHub
- URL: https://github.com/os-js/osjs-example-provider
- Owner: os-js
- License: other
- Created: 2018-03-10T18:37:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-09T22:52:52.000Z (almost 4 years ago)
- Last Synced: 2025-06-06T11:08:50.786Z (12 months ago)
- Topics: osjs, osjs-provider
- Language: JavaScript
- Homepage: https://manual.os-js.org/v3/
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[OS.js](https://www.os-js.org/) is an [open-source](https://raw.githubusercontent.com/os-js/OS.js/master/LICENSE) web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
[](https://www.patreon.com/user?u=2978551&ty=h&u=2978551)
[](https://opencollective.com/osjs)
[](https://liberapay.com/os-js/)
[](https://paypal.me/andersevenrud)
[](https://community.os-js.org/)
# OS.js Example Service Provider
This is the Example Service Provdider for OS.js
## Installation
```
npm install @osjs/example-provider
```
## Usage
In you startup procedure, simply import and register:
> Note: This example is written using ESM. Node does not support this out of the box, so assume this is a client scipt.
```
import {ExampleServiceProvider} from '@osjs/example-provider'; // You want your package name here
// ...
osjs.register(ExampleServiceProvider)
// ...
```
Then you can use `core.make('example/instance')` or `core.make('example/singleton')` (as provided by this example).
## Contribution
* **Sponsor on [Github](https://github.com/sponsors/andersevenrud)**
* **Become a [Patreon](https://www.patreon.com/user?u=2978551&ty=h&u=2978551)**
* **Support on [Open Collective](https://opencollective.com/osjs)**
* [Contribution Guide](https://github.com/os-js/OS.js/blob/master/CONTRIBUTING.md)
## Documentation
See the [Official Manuals](https://manual.os-js.org/) for articles, tutorials and guides.
## Links
* [Official Chat](https://gitter.im/os-js/OS.js)
* [Community Forums and Announcements](https://community.os-js.org/)
* [Homepage](https://os-js.org/)
* [Twitter](https://twitter.com/osjsorg) ([author](https://twitter.com/andersevenrud))
* [Google+](https://plus.google.com/b/113399210633478618934/113399210633478618934)
* [Facebook](https://www.facebook.com/os.js.org)
* [Docker Hub](https://hub.docker.com/u/osjs/)