You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/features/features.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Basic c++ knowledge is necessary.
20
20
21
21
### Code generation
22
22
23
-
Follow the documentation for the [code generation](/docs/start/first_steps) in general and [CLI](/docs/cli/generate) or the [Studio](/docs/studio/intro) tools.
23
+
Follow the documentation for the [code generation](/docs/guide/intro) in general and [CLI](/docs/cli/generate) or the [Studio](/docs/studio/intro) tools.
24
24
Or try first the [quick start guide](../quickstart/index.md) which shows how to prepare api and generate code out of it.
Copy file name to clipboardExpand all lines: docs/docs/quickstart/index.md
+6-143Lines changed: 6 additions & 143 deletions
Original file line number
Diff line number
Diff line change
@@ -1,142 +1,25 @@
1
1
---
2
2
sidebar_position: 2
3
3
---
4
+
import QuickStartCommon from "@site/docs/_quickstart_common.md"
4
5
5
6
# Quick-Start
6
7
7
8
The Quick-Start guide explains how in a few steps you get from an API definition to a functional c++ example.
8
9
9
10
Steps one and two are universal for other technologies. In the step two you will choose a concrete _cpp14_ template.
10
-
For more general information about first steps with ApiGear [First Steps](/docs/start/first_steps)
11
+
For more general information about first steps with ApiGear [First Steps](/docs/guide/intro)
11
12
12
13
The quick start enables only basic features: the [api](features/api.md) generation and simple [stub](features/stubs.md) implementation.
13
14
For all available features check the [overview](features/features.md).
14
15
15
-
## 1. Install the code generator
16
+
<QuickStartCommon />
16
17
17
-
Get the [ApiGear Studio](https://github.com/apigear-io/studio/releases) or [ApiGear CLI](https://github.com/apigear-io/cli/releases). For more information check the [ApiGear documentation](/docs/start/install).
18
+
## 5. Use the generated cpp project
18
19
19
-
##2. Get the template
20
+
### Project folder structure
20
21
21
-
There are several options to get the template. Installation via the _Studio_ or the _CLI_. Alternatively it is possible to clone or download from github.
22
-
23
-
### Installation via CLI
24
-
25
-
When using the _CLI_ only the highlighted line is imported. You can always check whether the installation was successful via the `template list` command.
From within the studio the installation is really simple.
45
-
46
-
1. Open an existing project or create an new one
47
-
2. Go to the `Templates` tab
48
-
3. Click `Install` on the `apigear-io/template-cpp14` entry
49
-
50
-
### Clone from github
51
-
52
-
In case you want to check or modify the source code of the template, it is easier to clone or download the repository. The repository does not need to be part of the project, but can be stored anywhere on the computer.
You can then point the solution file to use your template from its directory by providing relative path from the solution file.
59
-
60
-
## 3. Set up project
61
-
62
-
For a project we usually need two files. The solution which specifies what `APIs` and which template to use for it. And at least one `API` module file.
63
-
Both should ideally be in a folder called `apigear` next to each other.
64
-
65
-
Alternatively, you can also use the _Studio_ to create a new project and modify the two example files.
66
-
67
-
### Solution file
68
-
69
-
Create a [solution](/docs/start/first_steps#create-a-solution) file.
70
-
The example below specifies
71
-
72
-
- module files in _line 8_, here the `helloworld.module.yaml` module with `Hello` API
73
-
- the output directory for generated files in _line 9_
74
-
- a template used to generate the code in _line 10_, here the `apigear-ui/template-cpp14` template. This can also be a path to a local copy of the template.
75
-
- the enabled features of the template in _line 13_, here the `stubs` feature, a simple implementation of interfaces. For all available features check the [overview](features/features.md).
You can extend this solution file with other targets, each for the different technology with different template. The `module.yaml` is technology independent and may be used for any template.
95
-
:::
96
-
97
-
:::note
98
-
Set the force parameter to true if you want to always override all the generated files. With option set to false some files, like implementation (stub feature) won't be updated. All the API files are always updated.
99
-
:::
100
-
101
-
### API module file
102
-
103
-
Use your favorite text editor to create the `helloworld.module.yaml` with the example content:
0 commit comments