command
module
Version:
v0.0.0-...-4258ca0
Opens a new window with list of versions in this module.
Published: Nov 5, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
react-typescript app
This is a project template for Iris with React & Typescript apps.
Prerequisites
You will need to have:
- Node.js and Yarn to build the frontend application.
- Go to run the web server.
- Go-Bindata tool to embed the frontend app to the final build. Install it with the following Go command:
go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
Get started
Install & run the template with Iris CLI:
iris-cli run react-typescript
details...
Install the dependencies and build with Yarn...
cd app
yarn install
yarn build
cd ../
...then start the Iris web server:
go-bindata -prefix "app/build" -fs ./app/build/...
go run .
Navigate to localhost:8080. You should see your app running.
Documentation
¶
Package main generated by go-bindata.// sources:
app/build/asset-manifest.json
app/build/favicon.ico
app/build/index.html
app/build/logo192.png
app/build/logo512.png
app/build/manifest.json
app/build/robots.txt
app/build/static/css/main.073c9b0a.css
app/build/static/css/main.073c9b0a.css.map
app/build/static/js/main.82c79272.js
app/build/static/js/main.82c79272.js.LICENSE.txt
app/build/static/js/main.82c79272.js.map
app/build/static/media/logo.2d27ead7c10f774c5306bcf3c257a728.svg
Source Files
¶
Click to show internal directories.
Click to hide internal directories.