Blog

Project Manager: New Horizons

2017-07-14

There are times when you might think that you are omnipotent. You fancy yourself some sort of ace, a perfect professional who can move mountains at will. Have this happen to you? Well, I think that one lives and learns. You can’t possibly know everything, even within a single area. Today, I am continuing to talk about the Project Manager, hoping that this article will be useful not just for the beginners.

You can find the previous article here.

If You Chase Two Rabbits...

This saying does not hold true in the Project Manager. You can chase as many rabbits as you want and never lose any of them… um, what am I talking about? Well, about projects, of course! And about many, many applications inside one project.

Every project in Blend4Web is a unique entity with settings, parameters and a root directory of its own. However, there is no reason why you shouldn’t work with several independent applications inside a single project.

Why you might need this? The most obvious example would be developing an application for several social networks, each one with its own quirks and requirements. You will probably have to alter HTML, CSS and maybe even JS files. However, your main content (graphics, music, logic etc.) won’t be changing, right? This is only one of the cases where developing several apps in one project would come in handy.

This is not particularly hard to do. When you create a new project in Project Manager, it is already able to work with multiple applications. It’s just the program won’t tell you about it, so not many users are aware of this feature.

If you open a newly created project and view the files in its root folder, you will see something like this:

And in the Project Names/Apps column in the Project Manager you will see this:

Click the dev:my_project.html link, and the Manager will run the application in a new tab in browser. Well, you should already know this much.

But what if you create several HTML files in the project folder? In this case, something like this might happen:

What is interesting here is that the Project Manager considers each HTML file in the project folder an independent application. This is understandable, as it is there where you set CSS, scripts and other stuff.

If you try to build the application using the Build Project command, the Manager will compile each and every HTML file and files associated with them. This allows you to work with multiple variations of a single application inside a project.

Now, let’s take a look on a different task: how to make Project Manager not to take into account specific HTMLs. If you click the config link near the title of the project (see the picture above), the project configuration window will open. Add the HTML files you need to the Apps field. The program will recognize only the file listed in this field and will work with them exclusively. File names in the field should be separated by semicolons.

The Art of Building

Beginners and even experienced users do sometimes run into trouble with deploying applications to a web server. I’ve seen fully operational programs with HTML files containing long lists of engine source files in the SRC folder. I’ve also seen people asking on the forum: “Well, I’ve copied the folder, but it won’t work!”.

So, here are the rules of deploying applications with Project Manager:

 Make sure that JavaScript Obfuscation Level in the project settings is set to Advanced. This will tell compiler to minify the resulting JavaScript code and make it a bit harder to read.

 Execute the convert resources command. The Project Manager will scan all your files (images, sounds, video etc.) and automatically covert them to formats more suitable for web browsers. But do not delete original files! You can rely on the engine to decide which formats are better suited for certain browsers. Aside from converting media data, this command will also create compressed files in the gzip format, which is especially useful if you cannot set up compression on the server side. To use these gzip files, you have to add a specific assets_gzip_available: true directive to the engine initialization code:

var m_app = require("app");

m_app.init({
    canvas_container_id: "canvas",
    callback: init_cb,
    autoresize: true,
    assets_gzip_available: true
});

 Execute the build project command and test how the application works by running build: my_project.html (your own project will, of course, have a different title).

 Finally, execute the deploy project command, download the application archive and unpack it to a proper location in the server.

By following this simple list of actions you can be sure that your project will work on a server without problems and will be compatible with the broadest set of devices.

Comments
12 jan. 2024 12:36
This portal is incredibly user-friendly, simply accessible, and specifically designed with the convenience of the employees in mind. UPSers
28 mar. 2024 11:58
Walgreens is a pharmacy business with expertise in prescription filling, health and wellness items, health information, and photo services.

WalgreensListens.Com
29 mar. 2024 10:27
As previously stated, the primary goal of the survey is to monitor the store's success. Future plans of action are developed based on the input obtained, and customer services are enhanced.
Talktostopandshop
03 apr. 2024 08:27
Despite being the second-biggest hardware chain in the United States, Lowe's continues to carve out a niche for itself internationally. It now ranks as the second-biggest hardware chain globally, trailing only The Home Depot, its fierce rival, but also including well-known European retailers like Leroy Merlin, B&Q, and OBI.
Take Lowes Survey
08 apr. 2024 06:40
While returning home from Walgreens, I noticed something new on the receipt. The receipt included a survey number and a password.
WalgreensListens
01 jul. 2024 10:35
Zaxbyslistens is Zaxby's dedicated customer feedback program, designed to gather valuable insights from their patrons.
09 jul. 2024 10:56
With the use of this poll, Chipotle seeks to establish or refute whether or not consumers would be open to accepting local menu items in addition to the regular options available at all of its worldwide locations. visit here Chipotlefeedback Survey
10 jul. 2024 13:51
Restaurants with the Bagelexperience brand participate on the Bagel Talk caller incidence study. The accused will receive a confirmation number upon completion of the online survey, which is exclusive to their clientele.
10 jul. 2024 14:42
Beantragen Sie die zweite Staatsbürgerschaft mit der WhatsApp Ihrer Familie:+4915510195776/+447448435450
Alle unsere Dokumente sind in der Datenbank bzw. aus den Gastländern registriert. WhatsApp:+447448435450
Telegramm::: https://t.me/maxwood7

✅So beantragen Sie online die australische Staatsbürgerschaft
✅Staatsbürgerschaft durch Investition Portugal
✅Beantragung der US-Staatsbürgerschaft
✅Voraussetzung für die Beantragung der kanadischen Staatsbürgerschaft
✅Bewerben Sie sich online für die spanische Staatsbürgerschaft
✅So erhalten Sie die Vanuatu-Staatsbürgerschaft
✅Griechische Staatsbürgerschaft durch Investition
✅St.-Kitts-Staatsbürgerschaft durch Investition
✅Antigua-Barbuda-Staatsbürgerschaft durch Investition
✅fFji-Staatsbürgerschaft durch Investition
✅Brasilianische Staatsbürgerschaft durch Investition
✅Einreisebestimmungen für Amerikanisch-Samoa
✅Dominikanische Staatsbürgerschaft durch Spende
✅Malta-Staatsbürgerschaft durch Investitionsprogramm
✅Türkische Staatsbürgerschaft durch Investitionsprogramm
Alle oben genannten Länder sind verfügbar und weitere, die wir nicht erwähnt haben, kontaktieren Sie uns einfach so schnell wie möglich für weitere Details

Bearbeitungszeit für das D2-Visum für Portugal
Portugal D2-Visum für Fernarbeit

#Staatsbürgerschaft
#StaatsbürgerschaftdurchInvestition
#Reisepass
#shengenvisa
#Grüne Karte
#VISA
#Führerschein
#UKdriverslicense
#China
#Vereinigtes Königreich
#USA
#Auslöschung

WhatsApp:+447448435450
Telegramm::: https://t.me/maxwood7
10 jul. 2024 14:44
Beantragen Sie die zweite Staatsbürgerschaft mit der WhatsApp Ihrer Familie:+4915510195776/+447448435450
Alle unsere Dokumente sind in der Datenbank bzw. aus den Gastländern registriert. WhatsApp:+447448435450
Telegramm::: https://t.me/maxwood7

✅So beantragen Sie online die australische Staatsbürgerschaft
✅Staatsbürgerschaft durch Investition Portugal
✅Beantragung der US-Staatsbürgerschaft
✅Voraussetzung für die Beantragung der kanadischen Staatsbürgerschaft
✅Bewerben Sie sich online für die spanische Staatsbürgerschaft
✅So erhalten Sie die Vanuatu-Staatsbürgerschaft
✅Griechische Staatsbürgerschaft durch Investition
✅St.-Kitts-Staatsbürgerschaft durch Investition
✅Antigua-Barbuda-Staatsbürgerschaft durch Investition
✅fFji-Staatsbürgerschaft durch Investition
✅Brasilianische Staatsbürgerschaft durch Investition
✅Einreisebestimmungen für Amerikanisch-Samoa
✅Dominikanische Staatsbürgerschaft durch Spende
✅Malta-Staatsbürgerschaft durch Investitionsprogramm
✅Türkische Staatsbürgerschaft durch Investitionsprogramm
Alle oben genannten Länder sind verfügbar und weitere, die wir nicht erwähnt haben, kontaktieren Sie uns einfach so schnell wie möglich für weitere Details

Bearbeitungszeit für das D2-Visum für Portugal
Portugal D2-Visum für Fernarbeit

#Staatsbürgerschaft
#StaatsbürgerschaftdurchInvestition
#Reisepass
#shengenvisa
#Grüne Karte
#VISA
#Führerschein
#UKdriverslicense
#China
#Vereinigtes Königreich
#USA
#Auslöschung

WhatsApp:+447448435450
Telegramm::: https://t.me/maxwood7
Please register or log in to leave a reply.