Public Sub NoteKeeperDesign()
' define the project
Dim nk As clsHTML
nk.Initialize
nk.ProjectName = "Notekeeper"
' define the model, project name, model name, plural name and primary key
Dim mdl As clsHTML5Model
mdl.Initialize
mdl.PrimaryKey = "title" ' the primary key of the note
mdl.ProjectName = nk.ProjectName ' the project name this model belongs to
mdl.modelname = "Note" ' the name of the model
mdl.PluralName = "Notes" ' the pluralized name of the model
mdl.AddField("title", "Title", EnumInputType.InputType.text, True, "Add a note", True)
mdl.AddField("note", "Description", EnumInputType.InputType.textarea, True, "The content of your note", True)
' generate the crud mobile app
mdl.CreateApplication(nk)
' set it offline to create mobile app for offline use
nk.OfflineMode = True
nk.save
wbE.LoadHtml(nk.html)
Log(nk.html)
End Sub