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: 16/umbraco-cms/examples-and-playground.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,18 @@ description: Practical examples and hands-on experience are good ways to learn.
6
6
7
7
The Umbraco CMS codebase comes with a set of customization examples and a way to run them using a local front-end server. This setup enables you to change the code and review the effects instantly by refreshing your browser.
8
8
9
+
[Browse the available examples in the Umbraco CMS Repository](https://github.com/umbraco/Umbraco-CMS/tree/main/src/Umbraco.Web.UI.Client/examples).
10
+
9
11
## Get Started
10
12
11
13
1. Clone the source code from [https://github.com/umbraco/Umbraco-CMS/](https://github.com/umbraco/Umbraco-CMS/).
12
14
2. Make sure you have **npm** installed.
13
15
3. Open a terminal and navigate to `src/Umbraco.Web.UI.Client` .
14
16
4. Run the command: `npm install` .
15
-
5. Start a local server running one of the examples: `npm run example` .
17
+
18
+
### Run an Example
19
+
20
+
Start a local server and run one of the examples: `npm run example` .
16
21
17
22
### Create a playground
18
23
@@ -22,4 +27,5 @@ To create a new example, follow these steps:
22
27
23
28
1. Create a new folder with a name of your choice in the `examples/` folder.
24
29
2. Add an `index.ts` file that exports an array of manifests as the default export (See the other examples if in doubt).
30
+
3. Run your example using the command listed above in [Run an example](examples-and-playground.md#run-an-example).
0 commit comments