Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 2.67 KB

README.textile

File metadata and controls

54 lines (34 loc) · 2.67 KB

Private Yacht

This is an open web app
that provides you with a virtual private yacht.
Set sail!

The app is hosted right here on github pages
but you must pay
for it on the Mozilla Marketplace dev site
(no real money is used on the dev site).

This is a demo of how to create a paid app for the Mozilla Marketplace
and how to use the JavaScript receipt checking library to verify the receipt.
Check out the receipt verifier library
for more info on how to use it. This app invokes the library in
www/js/app.js .

WARNING

In a popular paid app you’d probably want to use a server side receipt checker,
like this one in Python .
Otherwise, an attacker can run your app in an apps-enabled browser
(such as the nightly build of Firefox) and fiddle with the JavaScript
using the console to gain access to the app. This would be harder to do
on Android, a B2G phone, or similar open web device.

Mortar

The Private Yacht was built with Mortar

“Mortar” is a code name for an Open Web App Bootstrap. This project aims to make it easy and quick to start writing Open Wep Apps.

It’s a combination of HTML5 tricks (HTML/CSS), js libraries, and a little bit of management commands that make it really easy to write and deploy apps.

This should just be a template: you should download this and hack it up to be whatever you like. You can delete or add as much stuff as you want.

View the official site here.

html5boilerplate

This is a fork from the html5boilerplate project, and many of the HTML5 tricks come from there, so the appropriate authors deserve credit for those.

We don’t need to target older browsers, however, so a bunch of IE 6/7 stuff has been removed and we’ve added things like marketplace libraries, require.js, and volo. Any of those things can be simply ignored though.

Back-end server

This is just a front-end template, but you’ll most likely need to set up a server for your app. I highly recommend the server-configs project from the h5b crew which provides really helpful templates for server configurations. That should help you get set up quickly.

Apache’s .htaccess file is already included here since that’s the most popular.

The End

This is very much alpha and will be fleshed out over time.