|
1 |
| -# abap2UI5-web |
| 1 | +## abap2UI5-Setup |
2 | 2 |
|
3 |
| -Run abap2UI5 with [**open-abap**](https://github.com/open-abap) on Node.js |
| 3 | +### Functionality |
| 4 | +* Downporting with [abaplint](https://abaplint.org/) |
| 5 | +* Transpiling to JS with [abaplint/transpiler](https://github.com/abaplint/transpiler) |
| 6 | +* Running on Node.js with [open-abap](https://github.com/open-abap/express-icf-shim) |
| 7 | +* Service exposing via [express-icf-shim](https://github.com/open-abap/express-icf-shim) |
| 8 | +* Browser Tests with [Playwright](https://playwright.dev/) |
| 9 | +* Webpacking, Unit Testing... |
4 | 10 |
|
5 |
| -Live Demo:<br> |
6 |
| -https://abap2ui5.github.io/web-abap2ui5-samples/ |
7 |
| - |
8 |
| -## Test |
| 11 | +### Tasks |
| 12 | +#### Downport & Transpile |
| 13 | +``` |
| 14 | +npm run init |
| 15 | +npm run build |
| 16 | +``` |
| 17 | +#### Run Unit Tests |
9 | 18 | ```
|
10 |
| -npm run clone |
11 | 19 | npm run unit
|
| 20 | +``` |
| 21 | +#### Run Webservice |
| 22 | +``` |
12 | 23 | npm run express
|
13 | 24 | ```
|
| 25 | +#### Run Playwright Tests |
| 26 | +``` |
| 27 | +npm run init_play |
| 28 | +npx playwright install --with-deps && npm i |
| 29 | +npx playwright test |
| 30 | +``` |
| 31 | + |
| 32 | +#### Webpack Build Strategy |
| 33 | + |
| 34 | +1. Clone repositories into /src/ |
| 35 | +2. Downport /src/ into /downport/ |
| 36 | +3. Transpile with express-icf-shim into /output/ |
| 37 | +4. Webpack backend + frontend + database into folder build |
| 38 | + |
| 39 | +``` |
| 40 | +npm run webpack:build |
| 41 | +``` |
| 42 | +### Overview |
| 43 | +<img width="800" alt="image" src="https://github.com/user-attachments/assets/97cc8b91-4a0b-4f22-9501-6655117c9c24"> |
| 44 | + |
| 45 | +### Demo |
| 46 | +#### Running on Node.js |
| 47 | + |
14 | 48 |
|
15 |
| -## Build Strategy |
| 49 | +#### Backend Runnning in Browser |
| 50 | +[https://abap2ui5.github.io/web-abap2ui5-samples/](https://abap2ui5.github.io/web-abap2ui5-samples/) |
16 | 51 |
|
17 |
| -1. Clone repositories into `/src/` |
18 |
| -2. Downport `/src/` into `/downport/` |
19 |
| -3. Transpile with [express-icf-shim](https://github.com/open-abap/express-icf-shim) into `/output/` |
20 |
| -4. Webpack backend + frontend + database into folder `build` |
21 | 52 |
|
22 |
| -## Demo |
23 |
| - |
| 53 | +### Credits |
| 54 | +* abaplint, open-abap, express-icf-shim etc. all by [larshp](https://github.com/larshp) |
0 commit comments