Today start a series of posts where I want to show the power of TheWebMind to create an application.
With the last release, a major new feature is the native module Zend Models, that generates an MVC application using Zend Framework.
Currently TheWebMind is in Pre-Alpha version, that means that is not yet fully stable, it still has bugs and improvements to be implemented.
But with what we have today, you can do a lot. And that’s what I want to share.
I assume that those who are following the tutorial already know what is TheWebMind, and know the theory behind it all.
Otherwise go to the page of documentation: http://docs.thewebmind.org/index.php?title=Main_Page
My proposal is to create a simple task system.
Requirements:
The system must allow the user registration.
The user must have a name
The task must have title, description, date and a User linked.
The system must allow the registration of multiple tasks to a User.
The system must have interface for viewing and editing of data, both users and tasks.
In short, it is a very simple system where the User registers its tasks.
Step 1 – Creating a project inTheWebMind
To create a project, go to the menu File > New Project and complete the project data.
PS: Make sure you have a database installed and configured on your server, and fill out the data, stating the address, name, port, User and password database.
These are information that TheWebMind uses to generate the tables.
Step 2 – Writing in WML
Created the project, let’s write the WM code, that meets the requirements.
The syntax of WML is based on the NLP concept (Natural Language Processing), that basically consists of being similar to natural human language (English, Portuguese, Spanish, etc).
More details in the documentation: http://docs.thewebmind.org/index.php?title=Web-Mind-Language
We know that person has a name:string(100); The task has title:string(100); The task has description:text(); The task has date:date(); The person has task;
Step 3 - Viewing the output
Click in the button
located in the task bar above the editor.
After “compiled” the project, you can see the outputs as ER diagram, Data Dictionary, and the SQL pane tabs below the editor.
Step 4 – Generating the project
To generate the project click on
also located in the task bar above the editor.
A Wizard screen will open, leading the User until the end.
At Step 1 select the second option, indicates that the database development previously registered on the screen to create the project.
Go to the next step by clicking Next.
A screen with all the modules will be displayed in Step 2, select ZendModels and proceed to the next step.
At Step 3 are 2 options related to the TheWebMind will do about the database.
This option should be selected carefully, because if you select the “be replaced,” the TheWebMind will delete the existing table, and all your data and create a new one with the necessary changes.
The “be skipped” ignores any change in the database.
Now click in Finish, and follow the screen where the TheWebMind shows everything that is happening, and copy necessary files, create tables.
Done. You just created a system with TheWebMind.
Step 5 – Viewing the generate project
Done all the work, the TheWebMind will display the message ”Finished, the project’s been generated here“.
A screen with the tree generated files will be displayed. You can see the contents of a file to select it.
Above the tree, click the button ”Explore Files” , this will take you to the page where the application was generated.
Step 6 -Testing Application
Following these steps have a simple operating system tasks.
To test the application generated click here: http://source.jaydson.org/TaskList/
The ZendModels generates the forms of application, it serves to test if everything is working properly.
Well, this was a small tutorial on how to make a simple system with TheWebMind using ZendModels.
Any doubt come into contact or comment.
Below is the link to download the application generated in the example, but for a better understanding of TheWebMind suggest you do the download TheWebMind, and follow all the steps described above.
It is very easy.
Download: http://source.jaydson.org/TaskList.rar
See another example at @felipenmoura Blog: http://felipenascimento.org/en/portugues-brasil-criando-uma-aplicacao-funcional-com-thewebmind/
Related Posts:

The Creating a Task System with TheWebMind by Jaydson Gomes, unless otherwise expressly stated, is licensed under a Creative Commons Attribution 2.5 Brazil License.

#1 by Cezar at March 23rd, 2010
Olá, muito legal este software!