Application
When a developer wants to create a new Application on Wappsto, he needs to create an application document.
During the development of an application, it easy in fact that the developer will require to have different versions of the same application. An application is composed of different versions where the developer can improve its application.
Furthermore each version own a different number of files to run the application.
An example of application can have the following structure.
application "Seluxit Alexa"
├── version "0.0.1" (idle old test)
| ├── file "icon.jpg" (icon)
| ├── file "index.html" (foreground)
| ├── file "index.css" (foreground)
| └── file "index.js" (foreground)
├── version "1.0.0" (not updated old version)
| ├── file "icon.jpg" (icon)
| ├── file "index.html" (foreground)
| ├── file "index.css" (foreground)
| ├── file "index.js" (foreground)
| ├── file "main.js" (background)
| └── file "background.js" (background)
├── version "1.0.1" (published version with hotfix)
| ├── file "icon.jpg" (icon)
| ├── file "index.html" (foreground)
| ├── file "index.css" (foreground)
| ├── file "index.js" (foreground)
| ├── file "main.js" (background)
| └── file "background.js" (background)
├── version "1.1.0" (pending new feature version)
| ├── file "icon.jpg" (icon)
| ├── file "index.html" (foreground)
| ├── file "index.css" (foreground)
| ├── file "index.js" (foreground)
| ├── file "new_feature.js" (foreground)
| ├── file "main.js" (background)
| └── file "background.js" (background)
├── version "2.0.0" (working in progress idle version)
| ├── file "icon.jpg" (icon)
| ├── file "index.html" (foreground)
| ├── file "index_2.html" (foreground)
| ├── file "index_2.css" (foreground)
| ├── file "index_2.js" (foreground)
| ├── file "new_feature.js" (foreground)
| ├── file "main.js" (background)
| └── file "background.js" (background)
└── oauth_client (connection to Alexa)
You can see that the developer started by creating a test version "0.0.1". Then he improved its work and it published a version "1.0.0". Probably there was some bugs since an hotfix "1.0.1" was published, making the old version "1.0.0" not updated. Then some new ideas came in mind and the developer decided to publish a new version "1.1.0" with some new features. However at the moment the version has been only been committed and it is in phase of evaluation by the Seluxit staff. In the meanwhile the developer decide to start to work on a major update for a version "2.0.0".
This application has some connection with Alexa so an oauth_client connection has been created.
Type of files
From the example you can noticed that there are three type of files.
- Icon: this is self explanatory and it is a picture used as an icon for the application.
- Foreground: these are the files that will run on a browser and they will be prompted when the user will open the program. User interface should be manage by foreground files.
- Background: these are filesthat will use node.js, running in a Docker container on Seluxit servers. Program that needs a continue connection on devices to check their status needs a background management.