Giter VIP home page Giter VIP logo

tourapplicationoss's Introduction

TourApplicationOSS

Tour Application for Firefox OS Released as Open Source Software

How to use build.sh script:

  • We are going to use special variables: ${VARIANT} and ${ZIPSIZE}, please do not remove any of them in the files, for a correct modification in time to script running.
  • config.json:
    • You must modify config.json file to use the "host" that you want.
  • package.manifest
    • Modify "package_path" with your host path
  • index.html:
    • Modify "URL" to point to your host + path.
  • build.sh:
    • Modify "pathSharedBase" to use the internal path of machine which was served for webserver.

When you execute build.sh, it parses config.json, index.html and package.manifest file, generates packages following an structure "country/device" in slidesPack dir and moves the result to "pathSharedBase". In this repo, you can see an example with country=variant and device=device. If you want make this package in one machine and server it with other, you must use an intermedium path, and make a manually upload to the server.

When server is ready to serve. It will use the:

  • "download" paths to serve the application.
  • "variant" paths to serve comercial offer.

Both kind of paths have "country/device" structure. And "variant" paths are periodically consulted to see the changes. If you want update commercial offer, you must to put the slides that you want in the "variant" paths ($variantPATH/$country/$device/slides) and modify slides.json file.

slides.json has a list of slides that must be used and an incremental integer number to reference version (if you modify this file but not increment "version" you won't have changes on the clients) An example of slides.json file:

{
  "data":   [
"Comercial_Offer.png"
            ],

  "version": "1"
}

An example of a complete structure in server using country=COUNTRY and device=DEVICE:

.
├── downloads
│   └── COUNTRY
│       └── DEVICE
│           ├── build
│           │   ├── package.manifest
│           │   └── package.zip
│           └── index.html
└── variants
    └── COUNTRY
        └── DEVICE
            └── slides
                ├── Commercial_Offer.png
                └── slides.json

tourapplicationoss's People

Contributors

basiclines avatar jmcanterafonseca avatar mlara avatar

Watchers

James Cloos avatar  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.