Skip to content

iris-contrib/svelte-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svelte app

build status report card

This is a project template for Iris & Svelte apps based on sveltejs/template.

Prerequisites

You will need to have:

  • Iris CLI installed to run the iris-cli command.
  • Node.js to build the frontend application.
  • Go to run the web server.

Get started

Install the template with Iris CLI:

iris-cli new --module=my-app svelte

Install the dependencies and build the svelte app with Rollup...

cd app
npm install
npm run dev (for livereload)

...then start the Iris web server:

cd ../
go run main.go

Navigate to localhost:8080. You should see your app running.

For building the production bundle:

cd app
npm run build (for build the production bundle)