Skip to content

iris-contrib/react-typescript-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-typescript app

build status report card

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.