Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit cd75b49

Browse files
committed
(docs): Adding the new Live Service Templates page. Making sure to make the necessary changes to the Platform Console page.
1 parent 2526c9f commit cd75b49

File tree

9 files changed

+175
-69
lines changed

9 files changed

+175
-69
lines changed
51.2 KB
Loading
37.1 KB
Loading
59 KB
Loading
31.4 KB
Loading
96.2 KB
Loading
73.9 KB
Loading
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
---
2+
title: Live Service Templates
3+
description: Learn about Amplication's Live Service Templates feature for creating and managing standardized service templates.
4+
sidebar_label: Live Service Templates
5+
slug: /live-service-templates
6+
---
7+
8+
# Live Service Templates
9+
10+
Live Service Templates let your team define, manage, and maintain standardized templates for backend services. This feature enhances consistency across your projects and streamlines the process of creating new services.
11+
12+
:::note
13+
The Live Service Templates feature is currently in beta.
14+
:::
15+
16+
## Overview
17+
18+
Live Service Templates introduce several key components:
19+
20+
1. **Service Templates**: Pre-configured service blueprints that serve as a foundation for creating new services.
21+
2. **Template-based Services**: New services created from existing templates, inheriting all settings and configurations.
22+
3. **Template Management**: Tools for creating, editing, and maintaining service templates.
23+
24+
## Create a Service Template
25+
26+
Navigate to the [Platform Console](/platform-console) dashboard. Click on "Create Template".
27+
28+
The Service Template Creation Wizard will guide you through the process of setting up your template.
29+
30+
1. **Select Technologies**: Choose the name and back-end framework for your template.
31+
32+
![Live Service Template Name and Stack](./assets/live-service-templates/name-and-stack.png)
33+
34+
2. **Choose APIs**: Select which APIs to include (REST API, GraphQL API, or both). Also, decide whether to generate an Admin UI for your templated service.
35+
36+
:::note
37+
GraphQL API and Admin UI are currently not available with the .NET generator.
38+
:::
39+
40+
![Live Service Template Select APIs](./assets/live-service-templates/apis.png)
41+
42+
3. **Database Selection**: Choose the database type for your template (e.g., PostgreSQL, MySQL, MongoDB, MS SQL Server).
43+
44+
![Live Service Template Database Selection](./assets/live-service-templates/database.png)
45+
46+
After completing these steps, your new service template will be created and added to the Platform Console.
47+
48+
![Amplication Create New Template](./assets/live-service-templates/complete.png)
49+
50+
## Manage Service Templates
51+
52+
### Viewing Templates
53+
54+
To view and manage your templates:
55+
56+
1. Go to the Platform Console dashboard.
57+
2. You'll see a list of all your service templates, each with its specific icon and type.
58+
59+
![Amplication Platform Console](./assets/amplication-platform-console.png)
60+
61+
### Editing Templates
62+
63+
To edit a template:
64+
65+
1. Click on the template name in the Platform Console dashboard.
66+
2. This will take you to the Service Template Overview page.
67+
68+
On this page, you can:
69+
70+
- View and edit the template name and description
71+
- See the associated technology stack
72+
- Manage installed plugins
73+
- Access template settings
74+
75+
![Service Template Dashboard](./assets/live-service-templates/service-template-dashboard.png)
76+
77+
### Template Settings
78+
79+
The Settings tab for service templates provides various configuration options:
80+
81+
1. **General**: Update the template name and description.
82+
2. **APIs and Admin**: Toggle different API types (REST, GraphQL) and Admin UI.
83+
3. **Base Directories**: Set the root directory for code placement when using the sync with Git feature. You can use `{{SERVICE_NAME}}` as a placeholder for the service name.
84+
4. **Authentication Entity**: Choose the authentication entity for your template.
85+
5. **Code Generator Version**: Select a specific version or use the latest.
86+
87+
:::note
88+
You can of course update your **Base Directories**, but our recommendation is keeping the placholder.
89+
:::
90+
91+
![Service Template Dashboard](./assets/live-service-templates/settings.png)
92+
93+
### Managing Plugins
94+
95+
To manage plugins for your template:
96+
97+
1. Go to the Plugins section of your service template.
98+
2. You can view all available plugins, installed plugins, or private plugins.
99+
3. To install a new plugin, select it from the available options and click "Install".
100+
101+
:::note
102+
To learn more about specifics about Plugin Management, visit the [Plugins page](/getting-started/plugins/).
103+
:::
104+
105+
## Creating Services from Templates
106+
107+
To create a new service based on a template:
108+
109+
1. Go to your workspace and click on the Services button for your project.
110+
2. Click "Add Resource".
111+
3. Select "Service from Template".
112+
4. Choose the desired template from the dropdown menu.
113+
5. Provide a name for your new service.
114+
6. Click "Create" to generate the new service based on the selected template.
115+
116+
![Amplication Create Services From Template](./assets/create-service-from-template.png)
117+
118+
The new service will inherit all settings and plugins from the template. You can view these inherited configurations in the Pending Changes sidebar.
119+
120+
## Update Service Templates
121+
122+
When you update a service template:
123+
124+
1. Make the desired changes (e.g., add new plugins, modify settings).
125+
2. In the Platform Changes sidebar, provide a description of your changes.
126+
3. Click "Publish New Version".
127+
128+
These changes will be stored within Amplication but not synced to your Git repository.
129+
130+
![Amplication Platform Changes](./assets/platform-changes.png)
131+
132+
## Propagate Template Changes to Services
133+
134+
After updating a template, you can apply these changes to existing services:
135+
136+
1. Go to the service created from the template.
137+
2. You'll see the available updates in the Pending Changes sidebar.
138+
3. Review the changes and click "Generate Code" to apply them.
139+
140+
This process will create a new commit with the updated configurations.
141+
142+
## Next Steps
143+
144+
Now that you have all the information you need to set up individiual template syou can start creating a collection of templates to standarize your organization's best practices.
145+
146+
:::tip
147+
For any questions or issues related to Live Service Templates, please contact our support team or share your feedback in our [GitHub discussions](https://github.com/amplication/amplication/discussions).
148+
:::

docs/how-to/platform-console.md

Lines changed: 26 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,57 @@
11
---
22
title: Platform Console
3-
description: Learn about Amplication's Platform Console, including templates and private plugins for standardizing service creation and management.
3+
description: Learn about Amplication's Platform Console, a hub for managing platform-wide features and configurations.
44
sidebar_label: Platform Console
55
slug: /platform-console
66
---
77

8-
The **Platform Console** is a powerful new feature in Amplication that allows your team to define, manage, and maintain standardized templates and private plugins for their backend services.
8+
# Platform Console
9+
10+
The **Platform Console** is a powerful feature in Amplication that provides a centralized hub for managing platform-wide features and configurations. It allows your team to oversee and maintain standardized practices across your projects.
911

1012
:::note
11-
The Platform Console features, including the usage of templates and creation of services based on templates, are **currently in beta**.
13+
Some Platform Console features are currently in beta.
1214
:::
1315

1416
## Overview
1517

16-
The Platform Console introduces two main components:
18+
The Platform Console introduces several key components:
1719

18-
1. **Platform Console Templates**: Pre-configured service templates that serve as a blueprint for creating new services.
20+
1. [**Live Service Templates**](/live-service-templates): Pre-configured service templates that serve as a blueprint for creating new services.
1921
2. **Private Plugins**: Custom plugins visible only to your organization that can be added to templates or services to extend functionality and/or keep your organization's best practices and standards.
2022

21-
These components are managed through a new dashboard interface, separate from the existing services view.
23+
These components are managed through a dedicated Platform Console dashboard, separate from the existing services view.
2224

2325
![Amplication Platform Console](./assets/amplication-platform-console.png)
2426

2527
## Benefits
2628

27-
- **Standardization**: Ensure all services follow organizational best practices and configurations.
28-
- **Customization**: Create and use private plugins to tailor services to your organization's specific needs.
29-
- **Efficiency**: Quickly create new services based on pre-defined templates.
29+
- **Standardization**: Ensure all services follow organizational best practices and configurations with [Live Service Templates](/live-service-templates).
30+
- **Efficiency**: Quickly create new services based on your templates.
31+
- **Customization**: Create and use Private Plugins to tailor services to your organization's specific needs.
3032
- **Smooth Maintenance**: Update multiple services from a single location. When you update a template, all services using that template can automatically get a PR with the required changes.
3133
- **Technical Debt Prevention**: Implement organization-wide best practices across all services through templates and private plugins, creating a scalable architecture that resists the accumulation of technical debt as your project grows.
3234

33-
## Platform Console Templates
34-
35-
Platform Console Templates allow you to create a single source of truth for your services' architecture. These templates can include:
36-
37-
- Pre-configured settings
38-
- Standard plugins
39-
- Custom private plugins
40-
41-
### Creating a Template
42-
43-
To create a new template:
35+
## Platform Console Features
4436

45-
1. Navigate to the Platform Console dashboard.
46-
2. Click on "Create Template".
47-
3. Provide a name for your template (e.g., "Node.js with PostgreSQL").
48-
4. Select the desired components (e.g., Admin UI, GraphQL API, REST API).
49-
5. Choose a database (e.g., PostgreSQL).
50-
6. Click "Create" to finalize the template.
37+
### Live Service Templates
5138

52-
![Amplication Create New Template](./assets/template-name-and-stack.png)
39+
Live Service Templates is a powerful feature that allows you to create, manage, and use standardized templates for your backend services. Key aspects include:
5340

54-
### Managing Templates
41+
- **Template Creation**: Define reusable service blueprints with pre-configured settings and plugins.
42+
- **Service Generation**: Quickly create new services based on your defined templates.
43+
- **Template Management**: Edit and update templates, with the ability to propagate changes to services.
5544

56-
Managing and updating templates is very similar to updating individual services. You have access to the same settings and most of the options available for services, including:
57-
58-
- Viewing all templates in the Platform Console dashboard.
59-
- Adding or removing plugins, including custom plugins.
60-
- Renaming templates and updating their descriptions.
61-
62-
To edit a template:
63-
64-
1. Navigate to the Settings tab to update the configuration or the Plugins tab to install and update plugins.
65-
2. Make your desired changes.
66-
3. All changes are saved automatically.
67-
68-
<!-- :::note
69-
When you update a template, **all services using that template will be updated in your next build**, ensuring consistency across your infrastructure.
70-
:::
71-
-->
45+
For detailed information on creating and using Live Service Templates, please refer to our [Live Service Templates](/live-service-templates) documentation.
7246

73-
### Using Templates
47+
### Private Plugins
7448

75-
To create a new service based on a template:
76-
77-
1. Click on the "Add Resource" button.
78-
2. Select "Service from Template" from the available options.
79-
3. In the modal that appears, choose a specific service template.
80-
4. Provide a name for your new service.
81-
5. Click "Create" to generate the new service based on the selected template.
82-
83-
This process ensures that the new service inherits all the pre-configured settings and plugins defined in the template.
84-
85-
![Amplication Create Services From Template](./assets/create-service-from-template.png)
86-
87-
## Private Plugins
88-
89-
Private plugins allow you to create custom functionality specific to your organization's needs. These can be added to templates or directly to services.
49+
Private plugins allow you to create custom functionality specific to your organization's needs. These can be added to services or used in templates.
9050

9151
:::note
9252
Creating and managing private plugins requires an Enterprise plan.
9353
:::
9454

95-
### Creating a Private Plugin
96-
9755
To create a private plugin:
9856

9957
1. In the Platform Console dashboard, navigate to the "Private Plugins" section.
@@ -102,21 +60,20 @@ To create a private plugin:
10260

10361
## Platform Changes Sidebar
10462

105-
The Platform Console introduces a new **_Platform_ Changes** sidebar that replaces the **_Pending_ Changes** sidebar. It's only visible when you're viewing the Platform Console.
63+
The Platform Console introduces a new **Platform Changes** sidebar that shows changes made to platform-wide settings and configurations. This is separate from the **Pending Changes** sidebar, which shows service-level changes.
10664

107-
"Platform Changes" shows changes made to templates and private plugins, while "Pending Changes" still shows service-level changes.
65+
![Amplication Platform Changes](./assets/platform-changes.png)
10866

10967
:::note
110-
Platform changes are separate from service-level changes. Make sure to review and commit platform changes separately from service changes.
68+
Platform changes are _separate_ from service-level changes and are not commited to your git repo. Make sure to review and commit platform changes separately from service changes.
11169
:::
11270

113-
![Amplication Create Services From Template](./assets/platform-changes.png)
114-
11571
## Conclusion
11672

117-
The Platform Console feature is designed to enhance the maintainability of your backend services, ensure organizational standardization, reduce technical debt, and streamline collaboration between platform and development teams.
73+
The Platform Console is designed to enhance the maintainability of your backend services, ensure organizational standardization, reduce technical debt, and streamline collaboration between platform and development teams.
74+
11875
As this feature is currently in beta, we encourage you to explore its capabilities and share your feedback to help us further improve and refine it.
11976

12077
:::tip
12178
For any questions or issues related to the Platform Console, please contact us or write your feedback on our [GitHub discussion](https://github.com/amplication/amplication/discussions/8979).
122-
:::
79+
:::

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const sidebars = {
2626
},
2727
items: [
2828
"getting-started/generated-app",
29+
"how-to/live-service-templates",
2930
"getting-started/service-building-new-versions",
3031
"getting-started/view-generated-code",
3132
"how-to/add-custom-code",

0 commit comments

Comments
 (0)