Skip to content

tutorial for cobigen angular client generation #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from 9 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2d2b30e
commit1 tutorial for cobigen angular client generation
suvmanda Mar 25, 2021
e09029a
rename to installCobiGen
suvmanda Mar 30, 2021
e76adf1
Merge remote-tracking branch 'upstream/main' into tutorial-for-angula…
suvmanda Apr 1, 2021
c04434a
remove hyphen
suvmanda Apr 1, 2021
664670a
Update index.asciidoc
suvmanda Apr 1, 2021
00e9905
updated to backendServer/server
suvmanda Apr 1, 2021
8db291b
tutorial for angular client generation with cobigen
suvmanda Apr 5, 2021
e054940
added port
suvmanda Apr 14, 2021
6d191a2
Added port
suvmanda Apr 14, 2021
4b8a270
Update index.asciidoc
suvmanda Apr 14, 2021
75a54c9
added angular client generation
suvmanda Apr 14, 2021
63bc32a
changed to cobigenexample
suvmanda Apr 15, 2021
49cdc6a
added Prerequisites and Learning goals
suvmanda Apr 15, 2021
f7fbe22
changed port number
suvmanda Apr 15, 2021
afb0eb4
changed projectname
suvmanda Apr 19, 2021
3458de2
prerequisites and learning goals changed
suvmanda Apr 19, 2021
1c7b2ad
title changed
suvmanda Apr 19, 2021
b94221c
rename cobigenjavaexample
suvmanda Apr 21, 2021
7c2f64a
rename cobigenexample to cobigenangularexample
suvmanda Apr 21, 2021
c951a28
conclusion added
suvmanda Apr 21, 2021
ec0a3d7
adding Subtitle
suvmanda Apr 21, 2021
4b84226
Update index.asciidoc
suvmanda Apr 27, 2021
af5ea9c
removed ====
suvmanda Apr 27, 2021
3a59430
comments fixed
suvmanda Apr 28, 2021
baaf8f5
restructuring the code
suvmanda Apr 29, 2021
393b9e5
fix syntax
suvmanda Apr 29, 2021
9d9a4d4
Merge branch 'main' into tutorial-for-angular-client-generation-with-…
suvmanda May 5, 2021
85382a3
Update index.asciidoc
suvmanda May 5, 2021
5403dec
adding steps
suvmanda May 6, 2021
fbc4e56
text added
suvmanda May 6, 2021
01c3fbe
Merge branch 'main' into tutorial-for-angular-client-generation-with-…
suvmanda May 10, 2021
c84e0a9
spelling fixed
suvmanda May 10, 2021
2df2803
Update index.asciidoc
suvmanda May 10, 2021
8984313
Update PR fixed
suvmanda May 20, 2021
126b959
Merge branch 'main' into tutorial-for-angular-client-generation-with-…
SchettlerKoehler Jun 11, 2021
7c5868b
Merge branch 'main' into tutorial-for-angular-client-generation-with-…
suvmanda Jun 21, 2021
52d1699
Merge branch 'main' into tutorial-for-angular-client-generation-with-…
SchettlerKoehler Jul 5, 2021
892cdd3
Merge branch 'main' into tutorial-for-angular-client-generation-with-…
SchettlerKoehler Jul 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions cobigen-angular-client-generation/index.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
= CobiGen Angular client generation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better Title :- Generate Angular Client with devonfw

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title changed.

====
With the CobiGen code generator you can easily generate components for your angular application.
The following tutorial provides an example for using the CobiGen cli.
You can find more information on https://github.com/devonfw/cobigen/wiki/howto_angular-client-generation
====

[step]
--
restoreDevonfwIde(["java", "mvn", "node", "ng", "npm"])
--

For this tutorial an installation of the devonfw IDE is required, which was already set up for you. The next step is to install the CobiGen CLI.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should say that this is only required the first time you use it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should say that this is only required the first time you use it

Added in the above line..

[step]
--
installCobiGen()
--

CobiGen uses the backend classes for generating your code used in the angular application. So in the next steps you will create a java project, create a simple java class and run the backend server.
[step]
--
createDevon4jProject("backendServer")
--

====
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening with ==== indicates that you'd like to add a new step with prepended and appended comments. However, regarding the tutorial development section you can see that this block is opened with ====, then you add the before-step instructions, then the step itself and then the result message afterwards.

[step]
== Build and Run Java Server
--
buildJava("backendServer")
runServerJava("backendServer/server",{ "startupTime": 40, "port": 8081, "path": "backendServer" })
--
Now the Java Server should be running.
====