Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/topliceanu/connect-b2g
Connect middleware that delivers an application manifest compatible with Mozilla's Open Web Apps initiative
https://github.com/topliceanu/connect-b2g
Last synced: 1 day ago
JSON representation
Connect middleware that delivers an application manifest compatible with Mozilla's Open Web Apps initiative
- Host: GitHub
- URL: https://github.com/topliceanu/connect-b2g
- Owner: topliceanu
- Created: 2012-06-26T18:50:39.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T11:34:08.000Z (about 7 years ago)
- Last Synced: 2024-03-03T10:01:29.896Z (9 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
connect-b2g
===========[![Build Status](https://secure.travis-ci.org/topliceanu/connect-b2g.png?branch=master)](http://travis-ci.org/topliceanu/connect-b2g)
Abstract
--------Connect middleware that delivers an application manifest compatible with Mozilla's Open Web Apps initiative
Installation
------------npm install connect-b2g
More
----Open Web Apps are web apps that are installable on Mozilla's Boot 2 Gecko Operating System.
Any website can be installed as an app on B2G but it needs to provide a manifest file.
The manifest is a text file containing a json document. It can have any name but must have the extension `.webapp`.
It will be requested from the webroot by the client device, much like a favicon.
Example: http://domain.com/manifest.webapp
To find out more about creating Boot to Gecko Apps go to the [Mozilla Developer Network](https://developer.mozilla.org/en/Apps)
This simple connect middleware delivers the mainfest from a given file path.
This middleware does not enforce the manifest schema, format or content. Read about these topics [here](https://developer.mozilla.org/en/Apps/Manifest).
Usage
-----Much like any other connect middleware
var connect = require('connect');
var b2g = require('connect-b2g');var app = connect()
.use( b2g( 'path/to/manifest.webapp' ) )
.listen(3000);Running tests
-------------To run tests you need to install [mocha](https://mochajs.org/) and [request](https://github.com/mikeal/request).
sudo npm install -g mocha
npm install requestmocha
Roadmap
-------This project is intended as a utility middleware for B2G app developers.
As such, whenever new features are added to the specs, they will be implemented here.
Feel free to send me feedback and to contribute to this project.
Licence
-------[WTFPL](http://sam.zoy.org/wtfpl/)