hardl / ui5-typescript-tutorial

Tutorial building UI5 applications with TypeScript.

Home Page:https://sap.github.io/ui5-typescript/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ui5-typescript-tutorial - Learn App Development in UI5 and TypeScript

REUSE status

Overview

This brief (~1-2-hours) tutorial introduces developers to UI5 application development in TypeScript. It includes creating a basic application from the TypeScript template using the "easy-UI5" generator, TypeScript coding in regular UI controllers, as well as advanced topics like custom control development and using third-party libraries.

Requirements

The technical requirements to follow the tutorial are:

Required knowledge:

  • You should have basic Javascript knowledge to avoid blind copy&paste without knowing what's going on
  • Basic UI5 knowledge is beneficial, as this tutorial focuses on the TypeScript side of things.
  • TypeScript knowledge is not required. If interested, having a quick look e.g. at this brief TypeScript intro for JavaScript developers might let you know what to expect.

Exercises

The tutorial consists of the following exercises. To start, just open the first link - you will be guided from there.

From the list, you can not only access each exercise directly, but also also browse the resulting sources and run the resulting app:

If you want to download the code for all the exercises, you can either download the entire repository as zip file and find the content in there below "ui5-typescript-tutorial-main/exercises/ex1/com.myorg.myapp" etc., or you can clone the repository using git.

The resulting app after each exercise can also be run from this page. It includes additional links to unoptimized versions of the app, which can be used to debug the original TypeScript sources.

High-Level Application Idea

As the Covid topic has been in global focus of attention for a long time now, the purpose of the application developed in this tutorial is to display Covid infection incidence data.

Main Detail

It uses an open-source API for the German Covid data to display the incidence for all states of Germany on the overview page and a line chart with the incidence history of the selected state on a detail page.

In Germany (and thus in the app), the commonly used term "incidence" is defined as: "number of detected infections per 100.000 persons within 7 days".

A fallback copy of the data ensures that the tutorial can still be used when the API no longer works.

How to obtain support

This repository is provided as-is, without any support guarantees. However, you are welcome to report issues via the Issues tab and we'll see what we can do to fix them.

License

Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

The files inside the backup_data directory are created by the API copyright by Marlon Lückert and licensed under the CC-BY-4.0 license.

About

Tutorial building UI5 applications with TypeScript.

https://sap.github.io/ui5-typescript/

License:Other


Languages

Language:TypeScript 83.9%Language:HTML 16.1%