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
Adds docs on how to enable Live Reload in a starter app (#252)
* Remove Thymeleaf application properties as they are not needed to use Live Reload
* Add docs on how to set up Live Reload
* Rearrange docs on when to go to localhost
* Add chromium browser list
Copy file name to clipboardExpand all lines: README.md
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,11 @@ Table of Contents
17
17
*[Actions](#actions)
18
18
*[Conditions](#conditions)
19
19
*[Setup Instructions](#setup-instructions)
20
+
*[Mac and Linux](#mac-and-linux)
21
+
*[Windows](#windows)
20
22
*[Setup Environment](#setup-environment)
23
+
*[IntelliJ](#intellij)
24
+
* [Setup Live Reload](#setup-live-reload)
21
25
*[Setup Application](#setup-application)
22
26
*[Contributing Live Templates to your App](#contributing-live-templates-to-your-app)
23
27
*[Using a local version of the Form-Flow Library (For Form-Flow Library Developers)](#using-a-local-version-of-the-form-flow-library-for-form-flow-library-developers)
@@ -141,19 +145,38 @@ After cloning the repository, run `scripts/setup.sh` from the root of the repo's
141
145
Check the script `scripts/setup.sh` for the most up to date list of dependencies and steps you'll need to install
142
146
manually.
143
147
144
-
###Setup Environment
148
+
## Setup Environment
145
149
146
150
Note that you'll need to provide some environment variables specified in [sample.env](sample.env) to
147
151
your IDE/shell to run the application. We use IntelliJ and have provided setup instructions for
148
152
convenience.
149
153
150
-
####IntelliJ
154
+
### IntelliJ
151
155
152
156
-`cp sample.env .env` (.env is marked as ignored by git)
153
157
- Download the [EnvFile plugin](https://plugins.jetbrains.com/plugin/7861-envfile) and follow the
154
158
setup instructions[here](https://github.com/Ashald/EnvFile#usage) to setup Run Configurations with
155
159
EnvFile.
156
160
161
+
#### Setup Live Reload
162
+
163
+
Live Reload is very helpful when making many changes to HTML templates, CSS, or JavaScript. Here are instructions on how to get IntelliJ to reload resources and have the LiveReload browser extension automatically reload the browser tab for you.
164
+
165
+
* Download live reload extension in your browser of choice:
*[Chrome extension - works with Chrome, Edge, Brave, Arc](https://chromewebstore.google.com/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei)
168
+
* Restart your browser after install
169
+
* In IntelliJ, go to Edit configuration
170
+
* Modify options
171
+
* On Frame deactivation:
172
+
* Check - Update classes and resources
173
+
* Run your application from IntelliJ
174
+
* Go to `http://localhost:8080/`
175
+
* Check that the live reload extension is "turned on", it will either be a solid color or a filled dot in the middle of the icon
176
+
* Now when you move focus away from IntelliJ it will trigger an update and will then trigger a browser refresh
177
+
178
+
> 📹 Here's a [video going step by step through these instructions](https://www.loom.com/share/74183c76d45c416e870ccf7aa06dd8ee?sid=a3bf01f9-b22d-423a-b61c-050bb0620d02).
0 commit comments