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: samples/music-festival-vue-decoupled/README.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,40 +9,41 @@ Content is fetched from Optimizely using the Content Delivery API: https://world
9
9
## Prerequisites
10
10
11
11
This project uses:
12
-
* Node.js 18+
13
-
* .NET SDK 6+
14
-
* SQL Server 2016 Express LocalDB ([download here](https://www.microsoft.com/en-us/sql-server/sql-server-downloads))
12
+
13
+
- Node.js 18+
14
+
- .NET SDK 9+
15
+
- SQL Server 2016 Express LocalDB ([download here](https://www.microsoft.com/en-us/sql-server/sql-server-downloads))
15
16
16
17
## Setup and Run
17
18
18
19
1. Run `setup.cmd`. You can re-run `setup.cmd` at any time to reset the backend with a fresh database.
19
20
2. Open terminal for `./backend` and run `dotnet run`.
20
-
* Navigate to http://localhost:8081/.
21
-
* Create an admin user. If the UI is not displayed automatically, navigate to http://localhost:8081/util/register.
22
-
* Now you can access http://localhost:8081/episerver/cms.
21
+
- Navigate to http://localhost:8081/.
22
+
- Create an admin user. If the UI is not displayed automatically, navigate to http://localhost:8081/util/register.
23
+
- Now you can access http://localhost:8081/episerver/cms.
23
24
3. Since we reference two NPM modules locally, we need to install them first (this is not needed if you install the modules from npmjs.com).
24
-
* Open terminal for `../../src/@episerver/content-definitions` and run `npm install` (only needed first run).
25
-
* Open terminal for `../../src/@episerver/content-delivery` and run `npm install` (only needed first run).
25
+
- Open terminal for `../../src/@episerver/content-definitions` and run `npm install` (only needed first run).
26
+
- Open terminal for `../../src/@episerver/content-delivery` and run `npm install` (only needed first run).
26
27
4. Open terminal for `./frontend` and run `npm install` (only needed first run).
27
-
* Run `npm run serve`.
28
-
* Navigate to http://localhost:8080/.
28
+
- Run `npm run serve`.
29
+
- Navigate to http://localhost:8080/.
29
30
30
31
## Notable files
31
32
32
33
### Vuex store modules
33
34
34
-
*[epiContext.js](frontend/src/store/modules/epiContext.js): makes `inEditMode` and `isEditable` flags available to the OPE helpers.
35
-
*[epiDataModel.js](frontend/src/store/modules/epiDataModel.js): the module that stores and updates the model object to be displayed on every component.
35
+
-[epiContext.js](frontend/src/store/modules/epiContext.js): makes `inEditMode` and `isEditable` flags available to the OPE helpers.
36
+
-[epiDataModel.js](frontend/src/store/modules/epiDataModel.js): the module that stores and updates the model object to be displayed on every component.
36
37
37
38
### On-Page Editing helpers
38
39
39
-
*[epiBootstrap.js](frontend/src/epiBootstrap.js): registers the `contentSaved` and `epiReady` message handlers that updates the vuex store.
40
-
*[epiEdit.js](frontend/src/directives/epiEdit.js): a directive that can be added on components to make them optionally editable (e.g. `<span v-epi-edit="Name">`), through `isEditable` and `epiDisableEditing`.
41
-
*[EpiProperty.vue](frontend/src/components/EpiProperty.vue): a component that renders a button to edit a property (e.g. `<epi-property property-name="Name">`).
40
+
-[epiBootstrap.js](frontend/src/epiBootstrap.js): registers the `contentSaved` and `epiReady` message handlers that updates the vuex store.
41
+
-[epiEdit.js](frontend/src/directives/epiEdit.js): a directive that can be added on components to make them optionally editable (e.g. `<span v-epi-edit="Name">`), through `isEditable` and `epiDisableEditing`.
42
+
-[EpiProperty.vue](frontend/src/components/EpiProperty.vue): a component that renders a button to edit a property (e.g. `<epi-property property-name="Name">`).
42
43
43
44
### Routing helpers
44
45
45
-
*[EpiPageComponentSelector.vue](frontend/src/components/EpiPageComponentSelector.vue): loads the Vue page component and owns its model.
46
-
*[EpiBlockComponentSelector.vue](frontend/src/components/EpiBlockComponentSelector.vue): loads the Vue block component.
47
-
*[EpiLink.vue](frontend/src/components/EpiLink.vue): regular links when in OPE and Vue router links otherwise.
48
-
*[EpiViewModeLink.vue](frontend/src/components/EpiViewModeLink.vue): disables links completely when in OPE.
46
+
-[EpiPageComponentSelector.vue](frontend/src/components/EpiPageComponentSelector.vue): loads the Vue page component and owns its model.
47
+
-[EpiBlockComponentSelector.vue](frontend/src/components/EpiBlockComponentSelector.vue): loads the Vue block component.
48
+
-[EpiLink.vue](frontend/src/components/EpiLink.vue): regular links when in OPE and Vue router links otherwise.
49
+
-[EpiViewModeLink.vue](frontend/src/components/EpiViewModeLink.vue): disables links completely when in OPE.
0 commit comments