Faster prototyping with Turnkey
(Created page with "MDriven Turnkey is very fast when it comes to creating and changing systems. But nothing is ever fast enough. When you use MDrivenDesigner you have the prototyping tool that...")
 
(Automatically adding template at the end of the page.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
MDriven Turnkey is very fast when it comes to creating and changing systems. But nothing is ever fast enough.
MDriven Turnkey is swift when it comes to creating and changing systems - but nothing is ever fast enough.


When you use MDrivenDesigner you have the prototyping tool that can show you the actions and general flow in a WPF generated app – but it is not exactly the same as the html5 apps that you get with Turnkey.
When you use MDriven Designer, you have the prototyping tool that can show you the actions and general flow in a WPF-generated app – but it is not the same as the html5 apps you get with the Turnkey.  


Pressing the Cloud-button and uploading the model to Azure or wherever your MDrivenServer resides only takes a few seconds – but still – that is a few seconds.
Pressing the Cloud button and uploading the model to Azure or wherever your MDrivenServer resides only takes a few seconds – but those are a few seconds too long.


Developing detailed information systems is grinding work – constant change – and acting on new ideas once you see the result of your initial change. We NEED and WANT the round-trip to be insanely tight.
Developing detailed information systems is grinding work – with constant changes – and acting on new ideas once you see the result of your initial change. We NEED and WANT the round-trip to be extremely tight.


We are aiming for a Local Turnkey that is just as fast as the prototyper for WPF.
We are aiming for a Local Turnkey that is just as fast as the prototyper for WPF.
Line 16: Line 16:
2. Web Deploy for IIS (google to find Microsoft web deploy).
2. Web Deploy for IIS (google to find Microsoft web deploy).


This gives you the Import/Export application menus from with IIS Admin:
This gives you the Import/Export application menus from the IIS Admin:


[[File:Prototyping with turnkey - 1.png|frameless]]
[[File:Prototyping with turnkey - 1.png|frameless]]
Line 22: Line 22:
3. MDrivenTurnkey – you get this from the [https://www.mdriven.net/downloads download page]
3. MDrivenTurnkey – you get this from the [https://www.mdriven.net/downloads download page]


This what you do:
This is what you do:


1. In IIS Admin – Import application – find the downloaded MDrivenTurnkey zip:
1. In IIS Admin – Import application – find the downloaded MDrivenTurnkey zip:
Line 28: Line 28:
[[File:Prototyping with turnkey - 2.png|frameless|429x429px]]
[[File:Prototyping with turnkey - 2.png|frameless|429x429px]]


Give the new turnkey-site a name:
Give the new turnkey site a name:


[[File:Prototyping with turnkey - 3.png|frameless|416x416px]]
[[File:Prototyping with turnkey - 3.png|frameless|416x416px]]


2. Make a note of the url to the new site and also the disk search path to the site root. In my case:
2. Make a note of the URL to the new site and also the disk search path to the site root. In my case:<blockquote><nowiki>http://localhost/MDrivenTurnkey2000</nowiki> (HTTP is fine)</blockquote><blockquote>C:\inetpub\wwwroot2\MDrivenTurnkey2000</blockquote>3. We want to run our/any model in this local turnkey. Start MDrivenDesigner. Save the initial model somewhere nice – in my case <blockquote>C:\temp\TurnkeyPrototyping\SampleModleForAssociations.modlr</blockquote>4. Press the “Play” button in MDrivenDesigner, click Local TurnkeyPrototyper, and fill in the URL and disk path to the site from above.
 
<nowiki>http://localhost/MDrivenTurnkey2000</nowiki> (http is fine)
 
C:\inetpub\wwwroot2\MDrivenTurnkey2000
 
3. Now we want to run our/any model in this local turnkey. Start MDrivenDesigner. Save the initial model somewhere nice – in my case  
 
C:\temp\TurnkeyPrototyping\SampleModleForAssociations.modlr
 
4. Press the “Play” button in MDrivenDesigner, click Local TurnkeyPrototyper, fill in the url and disk path to the site from above


[[File:Prototyping with turnkey - 4.png|frameless|453x453px]]
[[File:Prototyping with turnkey - 4.png|frameless|453x453px]]


Then press start system, followed by “Run Model and continue modelling”
Then, press start system, followed by “Run Model and continue modeling”.


'''IF THIS DOES NOT WORK IT HAS DO WITH FILE RIGHTS!'''
'''IF THIS DOES NOT WORK, IT HAS TO DO WITH FILE RIGHTS!'''


'''The turnkey site needs access to your modlr file – MDrivenDesigner needs access to your site files.'''
'''The turnkey site needs access to your modlr file – MDriven Designer needs access to your site files.'''


'''Fix like this:'''
'''Fix it like this:'''


1. Give MDrivenDesigner access to site:
1. Give MDriven Designer access to the site:


In my case properties/security on C:\inetpub\wwwroot2\MDrivenTurnkey2000
In my case, properties/security on C:\inetpub\wwwroot2\MDrivenTurnkey2000


[[File:Prototyping with turnkey - 5.png|frameless]]
[[File:Prototyping with turnkey - 5.png|frameless]]
Line 62: Line 52:
2. Give the site access to the modlr file library:
2. Give the site access to the modlr file library:


In my case properties/security on C:\temp\TurnkeyPrototyping
In my case: properties/security on C:\temp\TurnkeyPrototyping


Add rights full control for account IIS_IUSRS (the account that execute your app pools)
Add rights to full control for account IIS_IUSRS (the account that executes your app pools).


[[File:Prototyping with turnkey - 6.png|frameless|400x400px]]
[[File:Prototyping with turnkey - 6.png|frameless|400x400px]]


What you have now is a local Turnkey site that does not rely on an MDrivenServer – instead it use XML-persistence and it saves the file next to your model:
What you have now is a local Turnkey site that does not rely on an MDrivenServer. Instead, it uses XML Persistence and saves the file next to your model:


[[File:Prototyping with turnkey - 7.png|frameless|335x335px]]
[[File:Prototyping with turnkey - 7.png|frameless|335x335px]]


<nowiki>*</nowiki> If you create <YourModel>_AssetsTK this will be mirrored into the local Turnkey
<nowiki>*</nowiki> If you create <YourModel>_AssetsTK, this will be mirrored into the local Turnkey.


<nowiki>*</nowiki> You do not need to set up https – the local prototyping Turnkey suffice with http
<nowiki>*</nowiki> You do not need to set up HTTPS – the local prototyping Turnkey suffice with HTTP


<nowiki>*</nowiki> Whenever your Modlr file change – the local turnkey refresh the model
<nowiki>*</nowiki> Whenever your Modlr file changes – the local turnkey refreshes the model


<nowiki>*</nowiki> Put different Modlr files in the same directory – they can use the same Turnkey (one at a time). This means that I can switch model super fast.
<nowiki>*</nowiki> Put different Modlr files in the same directory – they can use the same Turnkey (one at a time). This means that I can switch models super fast.


<nowiki>*</nowiki> If I want to develop Angular directives, controls and page overrides – I can do so in the _AssetsTK folder with fast local machine round-trip
<nowiki>*</nowiki> If I want to develop Angular directives, controls, and page overrides – I can do so in the _AssetsTK folder with fast local machine round-trip


If I have this:
If I have this:
Line 90: Line 80:
[[File:Prototyping with turnkey - 9.png|frameless|433x433px]]
[[File:Prototyping with turnkey - 9.png|frameless|433x433px]]


Save model – refresh web:
Save model – refresh the web:


[[File:Prototyping with turnkey - 10.png|frameless|433x433px]]
[[File:Prototyping with turnkey - 10.png|frameless|433x433px]]
Line 96: Line 86:
Fast!
Fast!


I create a SampleModleForAssociations_AssetsTK folder with a sub folder Content with a tkusercss.css – hit save in MDrivenDesigner (this triggers Turnkey to reload internals and mirror over the assets):
I create a SampleModleForAssociations_AssetsTK folder with a subfolder Content with a tkusercss.css – hit save in MDrivenDesigner (this triggers Turnkey to reload internals and mirror over the assets):


[[File:Prototyping with turnkey - 11.png|frameless|511x511px]]
[[File:Prototyping with turnkey - 11.png|frameless|511x511px]]
Line 102: Line 92:
Fast!
Fast!


When I have iterated really FAST – I can seamlessly upload to a normal cloud Turnkey –  get a evolved db, get all the assets mirrored there and have the multi-user environment act exactly as my local prototype.
When I have iterated this QUICKLY, I can seamlessly upload to a normal cloud Turnkey –  get an evolved DB, all the assets mirrored there, and have the multi-user environment act exactly as my local prototype.
[[Category:MDriven Turnkey]]
{{Edited|July|12|2024}}

Latest revision as of 15:34, 10 February 2024

MDriven Turnkey is swift when it comes to creating and changing systems - but nothing is ever fast enough.

When you use MDriven Designer, you have the prototyping tool that can show you the actions and general flow in a WPF-generated app – but it is not the same as the html5 apps you get with the Turnkey.

Pressing the Cloud button and uploading the model to Azure or wherever your MDrivenServer resides only takes a few seconds – but those are a few seconds too long.

Developing detailed information systems is grinding work – with constant changes – and acting on new ideas once you see the result of your initial change. We NEED and WANT the round-trip to be extremely tight.

We are aiming for a Local Turnkey that is just as fast as the prototyper for WPF.

Presenting the Local TurnkeyPrototyper

This is what you need:

1. A local IIS with IIS Management Services installed. You add Management Services for IIS from Add/Remove Windows features.

2. Web Deploy for IIS (google to find Microsoft web deploy).

This gives you the Import/Export application menus from the IIS Admin:

Prototyping with turnkey - 1.png

3. MDrivenTurnkey – you get this from the download page

This is what you do:

1. In IIS Admin – Import application – find the downloaded MDrivenTurnkey zip:

Prototyping with turnkey - 2.png

Give the new turnkey site a name:

Prototyping with turnkey - 3.png

2. Make a note of the URL to the new site and also the disk search path to the site root. In my case:

http://localhost/MDrivenTurnkey2000 (HTTP is fine)

C:\inetpub\wwwroot2\MDrivenTurnkey2000

3. We want to run our/any model in this local turnkey. Start MDrivenDesigner. Save the initial model somewhere nice – in my case

C:\temp\TurnkeyPrototyping\SampleModleForAssociations.modlr

4. Press the “Play” button in MDrivenDesigner, click Local TurnkeyPrototyper, and fill in the URL and disk path to the site from above.

Prototyping with turnkey - 4.png

Then, press start system, followed by “Run Model and continue modeling”.

IF THIS DOES NOT WORK, IT HAS TO DO WITH FILE RIGHTS!

The turnkey site needs access to your modlr file – MDriven Designer needs access to your site files.

Fix it like this:

1. Give MDriven Designer access to the site:

In my case, properties/security on C:\inetpub\wwwroot2\MDrivenTurnkey2000

Prototyping with turnkey - 5.png

2. Give the site access to the modlr file library:

In my case: properties/security on C:\temp\TurnkeyPrototyping

Add rights to full control for account IIS_IUSRS (the account that executes your app pools).

Prototyping with turnkey - 6.png

What you have now is a local Turnkey site that does not rely on an MDrivenServer. Instead, it uses XML Persistence and saves the file next to your model:

Prototyping with turnkey - 7.png

* If you create <YourModel>_AssetsTK, this will be mirrored into the local Turnkey.

* You do not need to set up HTTPS – the local prototyping Turnkey suffice with HTTP

* Whenever your Modlr file changes – the local turnkey refreshes the model

* Put different Modlr files in the same directory – they can use the same Turnkey (one at a time). This means that I can switch models super fast.

* If I want to develop Angular directives, controls, and page overrides – I can do so in the _AssetsTK folder with fast local machine round-trip

If I have this:

Prototyping with turnkey - 8.png

and I change the ViewModel like this:

Prototyping with turnkey - 9.png

Save model – refresh the web:

Prototyping with turnkey - 10.png

Fast!

I create a SampleModleForAssociations_AssetsTK folder with a subfolder Content with a tkusercss.css – hit save in MDrivenDesigner (this triggers Turnkey to reload internals and mirror over the assets):

Prototyping with turnkey - 11.png

Fast!

When I have iterated this QUICKLY, I can seamlessly upload to a normal cloud Turnkey –  get an evolved DB, all the assets mirrored there, and have the multi-user environment act exactly as my local prototype.

This page was edited 97 days ago on 02/10/2024. What links here