Git Product home page Git Product logo

preload-app-toolkit's Introduction

Gaia Preload webapp generation script Build Status Coverage Status

Why need Gaia Preload App script

Pre-bundled webapp are not quite the same as usual webapp, since Pre-bundled webapp may be seen before internet is ready. It have to store linked icon to buildin base-64 strings, provide correspondent matadata.json, prefetched appcache..., etc.

Gaia Preload App script provide a preload.py script that help build pre-bundled webapp from a given .webapp URL.

Usage

fetch a single webapp

Find a webapp URL that want to bundled with, and run the command:

$ python preload.py http://<webapp url>

It will generate a folder with target webapp name.

batch process to fetch multiple webapp

You can form a list file that batched the process. The format is

Facebook,http://fa....
Twitter,https://twi....

Put preload.py script with list file in the same folder, then run the command:

$ python preload.py

preload.py script will parse the list file and do the conversion for you.

convert web icon to base64 string

fetch icon from URL and convert it to base64 string

$ python preload.py --icon http://<icon url>

Setup unit test

$ virtualenv .env
$ source .env/bin/activate
$ pip install mock
$ python preload_test.py

Experimental: Minilla web UI

We'd developing the Minilla web UI that help people ease the customization work with web interface.

The Minilla only depends on python, so you can run

$ python wsgi.py

open browser to http://localhost:8000 and use it.

preload-app-toolkit's People

Contributors

gasolin avatar yurenju avatar fzzzy avatar mpizza avatar arcturus avatar askeing avatar

Watchers

James Cloos avatar GabrielDuque avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.