Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yurique/frontroute-example
https://github.com/yurique/frontroute-example
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yurique/frontroute-example
- Owner: yurique
- Created: 2021-02-21T11:21:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T11:00:30.000Z (about 1 year ago)
- Last Synced: 2023-10-08T11:34:08.882Z (about 1 year ago)
- Language: Scala
- Size: 1.29 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# frontroute example
[frontroute](https://github.com/tulz-app/frontroute) + [Laminar](https://github.com/raquo/Laminar) example project.
## Running
Install npm dependencies:
```
yarn
```Build the front-end:
```
sbt frontendJS/fastLinkJS
```Start the webpack dev server:
```
yarn dev
```## Open in a browser
Open http://localhost:30290/ in the browser.
## Developing
To make sbt re-compile the front-end on code changes:
```
sbt ~frontendJS/fastLinkJS
```## Production build
Build an optimized JS:
```
sbt frontendJS/fullLinkJS
```Run webpack:
```
yarn run build
```The front-end assets will be generated into the `dist` folder.