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: README.md
+17-3
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,28 @@
2
2
3
3
Minimal boilerplate for a single-page app using React, TypeScript with JSX support (TSX), and Visual Studio Code.
4
4
5
-
Usage:
5
+
## Usage
6
6
7
-
* Install Node.js
7
+
Note: Run commands from the root folder of the cloned repository.
8
+
9
+
To build the project from the command-line:
10
+
11
+
* Install [Node.js](https://nodejs.org/)
8
12
*`npm install`
9
13
*`npm run build`
10
14
11
-
To view the app:
15
+
To view the app in the browser:
12
16
13
17
*`npm install -g http-server`
14
18
*`http-server`
15
19
* Open [http://localhost:8080/](http://localhost:8080/) in your browser of choice.
20
+
21
+
To develop using Visual Studio Code:
22
+
23
+
* Install [Visual Studio Code](https://code.visualstudio.com/).
24
+
* Open the root folder of the cloned repository.
25
+
* The `tasks.json` file is configured to run the TypeScript compiler in watch mode. Press Cmd+Shift+B on Mac or Ctrl+Shift+B on Windows or Linux to start the watcher.
26
+
27
+
To instantly view changes in the browser while developing:
28
+
29
+
* Run `npm run dev` in a terminal. This will start both `webpack` in watch mode and `http-server`. Hint: Visual Studio Code contains a built-in terminal.
0 commit comments