Exhibition: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 18: Zeile 18:
= Installation =
= Installation =
* Clone the Git project exhibition from github.
* Clone the Git project exhibition from github.
* Create a symbolic link for the command line tool meta_tool:  
* Create the project files for the dev-app:
<source lang="bash">
<source lang="bash">
# precondition: the current directory is the base folder of Exhibition
# precondition: the current directory is the parent of the base folder of Exhibition
sudo ln -s $(pwd)/tools/meta_tool /usr/local/bin
if [ ! -d exhibition/bin/meta_tool.dart ]; then
  echo "+++ $(pwd) is not the parent of the base folder of exhibition!"
else
  APP=myapp
  flutter create $APP
  cd $APP
  flutter config linux
  ../exhibition/tools/InitProject $APP
fi
</source>
</source>
* Create a Flutter project (with AndroidStudio). It is important to create the dev-app as neighbour of exhibition: If the base folder of exhibition is /home/ws/flutter/exhibition the base folder of the dev-app "myapp" is /home/ws/flutter/myapp.

Version vom 1. August 2021, 22:15 Uhr

Links

Motivation

Exhibition is a Flutter framework for developing an Flutter app very quickly.

Glossary

  • The dev-app is the Flutter application that should be developed with Exhibition.
  • A module is an object normally stored in one database table. Example: the module Users handles data of a user who can login to the app.
  • The metadata of a module is a dart class specifying all properties of the module in a well readable form. This must be defined by the developer.
  • Basic actions are: new ("create"), edit ("change"), list ("show many") and standard ("user defined")
  • A page is a dialog for exactly one basic action of a module. The page name is normally the name of the basic action, but can be changed. Normally each module has the pages new, edit and list.
  • The restserver is a sub project of the dev-app implementing a backend for managing the data storage in a MySql database. . See Exhibition-RestServer

Installation

  • Clone the Git project exhibition from github.
  • Create the project files for the dev-app:
# precondition: the current directory is the parent of the base folder of Exhibition
if [ ! -d exhibition/bin/meta_tool.dart ]; then
  echo "+++ $(pwd) is not the parent of the base folder of exhibition!"
else
  APP=myapp
  flutter create $APP
  cd $APP
  flutter config linux
  ../exhibition/tools/InitProject $APP
fi