Skip to content

Commit

Permalink
updated dev instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidruvolo51 committed Oct 9, 2021
1 parent c3d8918 commit 42c9185
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The `shiny-webpack-template` contains the basic structure for creating Shiny app

- ✨ Sass enabled
- 🔥 Hot Module Replacement
- 📦 Shiny as a Package ([Golem](https://github.com/ThinkR-open/golem) style project structure)
- 📦 Bundling your shiny as an R package
- 😍 And much more!

This application uses the following tools.
Expand Down Expand Up @@ -50,17 +50,16 @@ pnpm install

If you prefer to use `npm`, use `npm` instead of `pnpm`.

### 4. Start the development servers
### 4. Working in development mode

When everything is installed, start the parcel. Run the following command. Parcel will run on `localhost:1234` (the default).
For developing your application, I recommend creating two terminals in the same window. Use one to run the Shiny and the other to run node. Use the following scripts to start the dev servers.

```shell
yarn dev
yarn start # node
yarn shiny # shiny
```

Next, start a new R session. If you are using vscode, create a new second terminal. Open the `app.R` file and run both commands. This will run shiny at port `8000`.

Open your browser and type `http://localhost:8000`.
The application will be served at `http://localhost:8000`.

### 5. Building for production

Expand Down

0 comments on commit 42c9185

Please sign in to comment.